Added TEXT_COLOR, UNDERLINE_ENABLED and UNDERLINE_COLOR to properties and atlas renderer
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / text-view.cpp
index bfe3f70..b0825f6 100644 (file)
@@ -51,6 +51,16 @@ void View::SetVisualModel( VisualModelPtr visualModel )
   mImpl->mVisualModel = visualModel;
 }
 
+const Vector4& View::GetTextColor() const
+{
+  if ( mImpl->mVisualModel )
+  {
+    VisualModel& model = *mImpl->mVisualModel;
+    return model.GetTextColor();
+  }
+  return Vector4::ZERO;
+}
+
 const Vector2& View::GetShadowOffset() const
 {
   if ( mImpl->mVisualModel )
@@ -71,6 +81,26 @@ const Vector4& View::GetShadowColor() const
   return Vector4::ZERO;
 }
 
+const Vector4& View::GetUnderlineColor() const
+{
+  if ( mImpl->mVisualModel )
+  {
+    VisualModel& model = *mImpl->mVisualModel;
+    return model.GetUnderlineColor();
+  }
+  return Vector4::ZERO;
+}
+
+bool View::IsUnderlineEnabled() const
+{
+  if ( mImpl->mVisualModel )
+  {
+    VisualModel& model = *mImpl->mVisualModel;
+    return model.IsUnderlineEnabled();
+  }
+  return false;
+}
+
 Length View::GetNumberOfGlyphs() const
 {
   if( mImpl->mVisualModel )