Merge "Fixed Control and Magnifier API" into tizen
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / visual-model-impl.cpp
index c070179..5f36226 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;
@@ -483,10 +493,11 @@ VisualModel::VisualModel()
   mGlyphsPerCharacter(),
   mGlyphPositions(),
   mLines(),
-  mTextColor(),
-  mShadowColor(),
-  mUnderlineColor(),
-  mShadowOffset(),
+  mTextColor( Color::BLACK ),
+  mShadowColor( Color::BLACK ),
+  mUnderlineColor( Color::BLACK ),
+  mShadowOffset( Vector2::ZERO ),
+  mUnderlineHeight( 0.0f ),
   mNaturalSize(),
   mActualSize(),
   mCachedLineIndex( 0u ),