X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-controller.cpp;h=4f866785837cd75b227a4dfb8592d4a2665de2b4;hp=1e9ee8928697e1ed6dfa03b12f189ea1b20f06c2;hb=990c82585047cc8a259fd5440c49e03f4f1cedf6;hpb=f4352109bea0752f4e514d67641e47c4d9744451 diff --git a/dali-toolkit/internal/text/text-controller.cpp b/dali-toolkit/internal/text/text-controller.cpp index 1e9ee89..4f86678 100644 --- a/dali-toolkit/internal/text/text-controller.cpp +++ b/dali-toolkit/internal/text/text-controller.cpp @@ -987,8 +987,9 @@ struct Controller::Impl // Set the text properties to default mVisualModel->SetTextColor( Color::WHITE ); mVisualModel->SetShadowOffset( Vector2::ZERO ); - mVisualModel->SetShadowColor( Vector4::ZERO ); + mVisualModel->SetShadowColor( Color::BLACK ); mVisualModel->SetUnderlineEnabled( false ); + mVisualModel->SetUnderlineHeight( 0.0f ); } ~Impl() @@ -1212,6 +1213,11 @@ bool Controller::IsUnderlineEnabled() const return mImpl->mVisualModel->IsUnderlineEnabled(); } +float Controller::GetUnderlineHeight() const +{ + return mImpl->mVisualModel->GetUnderlineHeight(); +} + void Controller::SetTextColor( const Vector4& textColor ) { mImpl->mVisualModel->SetTextColor( textColor ); @@ -1237,6 +1243,11 @@ void Controller::SetUnderlineEnabled( bool enabled ) mImpl->mVisualModel->SetUnderlineEnabled( enabled ); } +void Controller::SetUnderlineHeight( float height ) +{ + mImpl->mVisualModel->SetUnderlineHeight( height ); +} + void Controller::EnableTextInput( DecoratorPtr decorator ) { if( !mImpl->mTextInput )