Merge changes I26f3edb0,Iba714851 into new_text
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / visual-model-impl.cpp
index c070179..a5fead4 100644 (file)
@@ -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 )
 {
 }