X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Flogical-model-impl.h;h=7a28ba639049ef79881602db1e0fa54d386c5824;hp=43ef817cc3a5fdcf5af4236ef235fe29a7de62ea;hb=d73cb8d5620abe0cce65941ce63ce2cf5de6690b;hpb=b766a879a8f8b55a7017847894a2f1bc7edd83d8 diff --git a/dali-toolkit/internal/text/logical-model-impl.h b/dali-toolkit/internal/text/logical-model-impl.h index 43ef817..7a28ba6 100644 --- a/dali-toolkit/internal/text/logical-model-impl.h +++ b/dali-toolkit/internal/text/logical-model-impl.h @@ -26,7 +26,9 @@ // INTERNAL INCLUDES #include #include +#include #include +#include #include namespace Dali @@ -40,6 +42,7 @@ namespace Text class LogicalModel; typedef IntrusivePtr LogicalModelPtr; +struct InputStyle; /** * @brief A logical text model contains layout independent information. @@ -106,6 +109,27 @@ public: */ CharacterIndex GetLogicalCharacterIndex( CharacterIndex visualCharacterIndex ) const; + /** + * @brief Updates the text's style runs with the added or removed text. + * + * @param[in] index The character's index. + * @param[in] numberOfCharacters The number of characters added or removed. If the value is negative the characters are removed. + */ + void UpdateTextStyleRuns( CharacterIndex index, int numberOfCharacters ); + + /** + * @brief Retrieves the text's style for the given character index. + * + * @param[in] index The character index. + * @param[out] style The text's style in the given style. + */ + void RetrieveStyle( CharacterIndex index, InputStyle& style ); + + /** + * @brief Clears the font description runs. + */ + void ClearFontDescriptionRuns(); + protected: /** @@ -131,6 +155,8 @@ public: Vector mText; Vector mScriptRuns; Vector mFontRuns; + Vector mColorRuns; + Vector mFontDescriptionRuns; Vector mLineBreakInfo; Vector mWordBreakInfo; Vector mBidirectionalParagraphInfo;