Merge "Makes the LTR/RTL alignment of text follow the system language by default...
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / text-view.cpp
index 83ad28f..8439927 100644 (file)
@@ -343,6 +343,16 @@ const ColorIndex* const View::GetBackgroundColorIndices() const
   return nullptr;
 }
 
+bool const View::IsMarkupBackgroundColorSet() const
+{
+  if(mImpl->mVisualModel)
+  {
+    return (mImpl->mVisualModel->mBackgroundColors.Count() > 0);
+  }
+
+  return false;
+}
+
 const Vector4& View::GetTextColor() const
 {
   if(mImpl->mVisualModel)
@@ -388,6 +398,35 @@ bool View::IsUnderlineEnabled() const
   return false;
 }
 
+const GlyphInfo* View::GetHyphens() const
+{
+  if(mImpl->mVisualModel)
+  {
+    return mImpl->mVisualModel->mHyphen.glyph.Begin();
+  }
+
+  return nullptr;
+}
+
+const Length* View::GetHyphenIndices() const
+{
+  if(mImpl->mVisualModel)
+  {
+    return mImpl->mVisualModel->mHyphen.index.Begin();
+  }
+
+  return nullptr;
+}
+
+Length View::GetHyphensCount() const
+{
+  if(mImpl->mVisualModel)
+  {
+    return mImpl->mVisualModel->mHyphen.glyph.Size();
+  }
+
+  return 0;
+}
 float View::GetUnderlineHeight() const
 {
   if(mImpl->mVisualModel)