X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fvisual-model-impl.cpp;h=a5fead41b76908694b64cdf17b7b6dce848cc33a;hp=c0701796da42a80fef22fd0a4f8ca3be8c76da29;hb=0a2f5e1551be90466c7b64173bd750c4009c744e;hpb=744b2f892a2c8d9110adbfa9e82bc877f776978c diff --git a/dali-toolkit/internal/text/visual-model-impl.cpp b/dali-toolkit/internal/text/visual-model-impl.cpp index c070179..a5fead4 100644 --- a/dali-toolkit/internal/text/visual-model-impl.cpp +++ b/dali-toolkit/internal/text/visual-model-impl.cpp @@ -441,6 +441,11 @@ void VisualModel::SetUnderlineEnabled( bool enabled ) mUnderlineEnabled = enabled; } +void VisualModel::SetUnderlineHeight( float height ) +{ + mUnderlineHeight = height; +} + const Vector4& VisualModel::GetTextColor() const { return mTextColor; @@ -466,6 +471,11 @@ bool VisualModel::IsUnderlineEnabled() const return mUnderlineEnabled; } +float VisualModel::GetUnderlineHeight() const +{ + return mUnderlineHeight; +} + void VisualModel::ClearCaches() { mCachedLineIndex = 0u; @@ -487,11 +497,12 @@ VisualModel::VisualModel() mShadowColor(), mUnderlineColor(), mShadowOffset(), + mUnderlineHeight( 0.0f ), + mUnderlineEnabled( false ), + mUnderlineColorSet( false ), mNaturalSize(), mActualSize(), - mCachedLineIndex( 0u ), - mUnderlineEnabled( false ), - mUnderlineColorSet( false ) + mCachedLineIndex( 0u ) { }