X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali-toolkit%2Finternal%2Ftext%2Fcontroller%2Ftext-controller.h;h=27b84916d577a887d19f6e8f069618c920d2c0b9;hb=e4025736c4d5e85ab7408f9d6932cc7b3e9c9fef;hp=511c55024acb3aa2b1e263e23c1ca09632582029;hpb=83902cc72796cacafb20815aeeef5dc1846f9f0a;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/controller/text-controller.h b/dali-toolkit/internal/text/controller/text-controller.h index 511c550..27b8491 100644 --- a/dali-toolkit/internal/text/controller/text-controller.h +++ b/dali-toolkit/internal/text/controller/text-controller.h @@ -19,6 +19,7 @@ */ // EXTERNAL INCLUDES +#include #include #include @@ -753,6 +754,15 @@ public: // Update. void GetText(std::string& text) const; /** + * @brief Set the @p spannedText + * the spanned text contains content (text) and format (spans with ranges) + * the text is copied into text-controller and the spans are applied on ranges + * + * @param[in] spannedText the text with spans. + */ + void SetSpannedText(const Text::Spanned& spannedText); + + /** * @brief Replaces any placeholder text previously set. * * @param[in] type Different placeholder-text can be shown when the control is active/inactive. @@ -1751,6 +1761,16 @@ public: // Queries & retrieves. Rect GetCharacterBoundingRectangle(const uint32_t charIndex); /** + * @brief Get the character index. + * If the text is not yet rendered or the text is empty, -1 is returned. + * + * @param[in] visualX visual x position. + * @param[in] visualY visual y position. + * @return character index. + */ + int GetCharacterIndexAtPosition(float visualX, float visualY); + + /** * @brief Gets the bounding box of a specific text range. * * @param[in] startIndex start index of the text requested to get bounding box to. @@ -2084,6 +2104,7 @@ private: struct PlaceholderHandler; struct Relayouter; struct TextUpdater; + struct SpannableHandler; Impl* mImpl; };