X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-view.cpp;h=843992721b40620411e7496dad4b3f8c580edd1f;hb=c7c2401a9d5f40eba903e83962534c217c9e2682;hp=83ad28fd8aba8e4bcc8b824c6a8a7b2e1083103c;hpb=f2039d47f9bed8104575da80a2ecf0bb6e37ff8d;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/text-view.cpp b/dali-toolkit/internal/text/text-view.cpp index 83ad28f..8439927 100644 --- a/dali-toolkit/internal/text/text-view.cpp +++ b/dali-toolkit/internal/text/text-view.cpp @@ -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)