X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Ftext-controls%2Ftext-editor-impl.h;h=5591439b710aa8218c460c6cf2ace3ec946433a4;hb=e4025736c4d5e85ab7408f9d6932cc7b3e9c9fef;hp=a6cd50db8ae0a093258a180c23e975cf398ca20e;hpb=9c9c7e28c052746ade264c9d0522d090674a78a3;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/text-controls/text-editor-impl.h b/dali-toolkit/internal/controls/text-controls/text-editor-impl.h index a6cd50d..5591439 100644 --- a/dali-toolkit/internal/controls/text-controls/text-editor-impl.h +++ b/dali-toolkit/internal/controls/text-controls/text-editor-impl.h @@ -377,6 +377,16 @@ public: Rect GetCharacterBoundingRectangle(const uint32_t charIndex) const; /** + * @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) const; + + /** * @brief Set the @p spannedText into current textEditor * 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