X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Ftext-controls%2Ftext-editor-devel.h;h=9aab35f7971b0f230003d67af02f9424f933bded;hb=HEAD;hp=92c2e591924bdae7c7694eacddb85eaed560b6f6;hpb=8f80166ff21655f688f7414eb1e4a843754dbb52;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/controls/text-controls/text-editor-devel.h b/dali-toolkit/devel-api/controls/text-controls/text-editor-devel.h index 92c2e59..1831327 100644 --- a/dali-toolkit/devel-api/controls/text-controls/text-editor-devel.h +++ b/dali-toolkit/devel-api/controls/text-controls/text-editor-devel.h @@ -325,6 +325,18 @@ enum Type * @see Dali::Toolkit::TextSelectionPopup::Property */ SELECTION_POPUP_STYLE, + + /** + * @brief Whether to trim the xBearing of first glyph of the text. + * @details Name "removeFrontInset", type Property::BOOLEAN. + */ + REMOVE_FRONT_INSET, + + /** + * @brief Whether to trim the advance of last glyph of the text. + * @details Name "removeBackInset", type Property::BOOLEAN. + */ + REMOVE_BACK_INSET, }; } // namespace Property @@ -543,6 +555,16 @@ DALI_TOOLKIT_API Vector GetTextSize(TextEditor textEditor, const uint32 DALI_TOOLKIT_API Vector GetTextPosition(TextEditor textEditor, const uint32_t startIndex, const uint32_t endIndex); /** + * @brief Gets the bounding box of a specific text range. + * + * @param[in] textEditor The instance of textEditor. + * @param[in] startIndex start index of the text requested to get bounding box to. + * @param[in] endIndex end index(included) of the text requested to get bounding box to. + * @return bounding box of the requested text. + */ +DALI_TOOLKIT_API Rect<> GetTextBoundingRectangle(TextEditor textEditor, uint32_t startIndex, uint32_t endIndex); + +/** * @brief Copy and return the selected text of TextEditor. * * @param[in] textEditor The instance of TextEditor. @@ -565,6 +587,39 @@ DALI_TOOLKIT_API std::string CutText(TextEditor textEditor); */ DALI_TOOLKIT_API void PasteText(TextEditor textEditor); +/** + * @brief Set removing front inset to text label. + * + * @param[in] textEditor The instance of TextLabel. + * @param[in] remove Whether front inset of text label has to be removed or not. + */ +DALI_TOOLKIT_API void SetRemoveFrontInset(TextEditor textEditor, const bool remove); + +/** + * @brief Whether front inset of text label is removed or not. + * + * @param[in] textEditor The instance of TextLabel. + * @return True if the front inset of text label is removed. + */ +DALI_TOOLKIT_API bool IsRemoveFrontInset(TextEditor textEditor); + +/** + * @brief Set removing back inset to text label. + * + * @param[in] textEditor The instance of TextLabel. + * @param[in] remove Whether back inset of text label has to be removed or not. + */ +DALI_TOOLKIT_API void SetRemoveBackInset(TextEditor textEditor, const bool remove); + +/** + * @brief Whether back inset of text label is removed or not. + * + * @param[in] textEditor The instance of TextLabel. + * @return True if the back inset of text label is removed. + */ +DALI_TOOLKIT_API bool IsRemoveBackInset(TextEditor textEditor); + + } // namespace DevelTextEditor } // namespace Toolkit