X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fvisual-model-impl.h;h=c355c3cebb62adae532301f51998f6e00efe06e5;hb=8f6b5ddd0eb6057bfde74224bb3a55020ca7a746;hp=371b6669b69f575519e22780f21835a7abf305c1;hpb=f0a677dd7b2485269f34dad6f519c7304da6e0eb;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/visual-model-impl.h b/dali-toolkit/internal/text/visual-model-impl.h index 371b666..c355c3c 100644 --- a/dali-toolkit/internal/text/visual-model-impl.h +++ b/dali-toolkit/internal/text/visual-model-impl.h @@ -35,6 +35,13 @@ namespace Toolkit { namespace Text { +struct HyphenInfo +{ + Vector glyph; + Vector position; + Vector index; +}; + class VisualModel; typedef IntrusivePtr VisualModelPtr; @@ -353,6 +360,20 @@ public: */ bool IsBackgroundEnabled() const; + /** + * @brief Sets whether the text has a markup-processor or not. + * + * @param[in] enabled true if the text has a markup-processor. + */ + void SetMarkupProcessorEnabled(bool enabled); + + /** + * @brief Returns whether the text has a markup-processor or not. + * + * @return whether the text has a markup-processor or not. + */ + bool IsMarkupProcessorEnabled() const; + protected: /** * @brief A reference counted object may only be deleted by calling Unreference(). @@ -407,6 +428,8 @@ public: bool mUnderlineEnabled : 1; ///< Underline enabled flag bool mUnderlineColorSet : 1; ///< Has the underline color been explicitly set? bool mBackgroundEnabled : 1; ///< Background enabled flag + bool mMarkupProcessorEnabled : 1; ///< Markup-processor enabled flag + HyphenInfo mHyphen; ///< Contains hyphen glyph info & the character index to draw hyphen after. }; } // namespace Text