X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Ftext-controls%2Ftext-field-devel.h;h=a06181997458e47993f4d190d24ef3ccba187ba9;hb=acfb5074bd70ca8484f429086857e3153f01466a;hp=9bc6fc117958a7f663b302dd56d52b7ea75b8601;hpb=70fdb1a1e8e2660c383079ae49bc94fbe14943d1;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/controls/text-controls/text-field-devel.h b/dali-toolkit/devel-api/controls/text-controls/text-field-devel.h index 9bc6fc1..a061819 100644 --- a/dali-toolkit/devel-api/controls/text-controls/text-field-devel.h +++ b/dali-toolkit/devel-api/controls/text-controls/text-field-devel.h @@ -233,6 +233,22 @@ enum * @details Name "inputStrikethrough", type Property::MAP. */ INPUT_STRIKETHROUGH, + + /** + * @brief The spaces between characters in Pixels. + * @details Name "characterSpacing", type Property::FLOAT. + * @note + * A positive value will make the characters far apart (expanded) and a negative value will bring them closer (condensed). + * The default value is 0.f which does nothing. + */ + CHARACTER_SPACING, + + /** + * @brief Sets the selection popup style + * @details Name "selectionPopupStyle", type Property::MAP. + * @see Dali::Toolkit::TextSelectionPopup::Property + */ + SELECTION_POPUP_STYLE, }; } // namespace Property @@ -356,6 +372,23 @@ using SelectionClearedSignalType = Signal; DALI_TOOLKIT_API SelectionClearedSignalType& SelectionClearedSignal(TextField textField); /** + * @brief selection start signal type. + */ +using SelectionStartedSignalType = Signal; + +/** + * @brief This signal is emitted when the selection start. + * + * A callback of the following type may be connected: + * @code + * void YourCallbackName( TextField textField); + * @endcode + * @param[in] textField The instance of TextField. + * @return The signal to connect to + */ +DALI_TOOLKIT_API SelectionStartedSignalType& SelectionStartedSignal(TextField textField); + +/** * @brief Get the rendered size of a specific text range. * if the requested text is at multilines, multiple sizes will be returned for each text located in a separate line. * if a line contains characters with different directions, multiple sizes will be returned for each block of contiguous characters with the same direction. @@ -380,6 +413,16 @@ DALI_TOOLKIT_API Vector GetTextSize(TextField textField, const uint32_t DALI_TOOLKIT_API Vector GetTextPosition(TextField textField, const uint32_t startIndex, const uint32_t endIndex); /** + * @brief Gets the bounding box of a specific text range. + * + * @param[in] textField The instance of textField. + * @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(TextField textField, uint32_t startIndex, uint32_t endIndex); + +/** * @brief Select the whole text of TextField. * * @param[in] textField The instance of TextField.