X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Ftext-controls%2Ftext-selection-popup.h;h=4eec4c136b9fdf83dc5d57cedec9a43fd4ccc385;hb=6da8438e9ac7350d9cc6f69b35cbcc4ab3987da1;hp=860889181d1d71d7fae6b305b25f1b07ad509d78;hpb=da7bba2130b0b15f9d93d63b2404b8888af2c85b;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.h b/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.h index 8608891..4eec4c1 100644 --- a/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.h +++ b/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.h @@ -86,17 +86,21 @@ public: POPUP_PASTE_BUTTON_ICON_IMAGE, ///< name "popup-paste-button-image", The image to use as the popup paste icon, type STRING POPUP_SELECT_BUTTON_ICON_IMAGE, ///< name "popup-select-button-image", The image to use as the popup select icon, type STRING POPUP_SELECT_ALL_BUTTON_ICON_IMAGE, ///< name "popup-select-all-button-image", The image to use as the popup select all icon, type STRING + POPUP_DIVIDER_COLOR, ///< name "popup-divider-color", The color of the divider between options, type VECTOR4 + POPUP_ICON_COLOR, ///< name "popup-icon-color", The color of the icons (if supplied), type VECTOR4 + POPUP_PRESSED_COLOR, ///< name "popup-pressed-color", The color of the option when pressed, type VECTOR4 + POPUP_PRESSED_IMAGE, ///< name "popup-pressed-image", The image to use for the option when pressed, type STRING + POPUP_FADE_IN_DURATION, ///< name "popup-fade-in-duration", The duration of the fade-in animation, type FLOAT + POPUP_FADE_OUT_DURATION, ///< name "popup-fade-out-duration", The duration of the fade-out animation, type FLOAT }; }; /** - * Create the TextSelectionPopup control with the given set of buttons. - * @param[in] enabledButtons The given set of buttons to enable + * Create the TextSelectionPopup control. * @param[in] callbackInterface The text popup callback interface which receives the button click callbacks. * @return A handle to the TextSelectionPopup control. */ - static TextSelectionPopup New( Buttons enabledButtons, - TextSelectionPopupCallbackInterface* callbackInterface ); + static TextSelectionPopup New( TextSelectionPopupCallbackInterface* callbackInterface ); /** * @brief Creates an empty handle. @@ -137,12 +141,28 @@ public: static TextSelectionPopup DownCast( BaseHandle handle ); /** + * @brief Specify which buttons to show in Popup + * @param[in] buttonsToEnable Buttons to enable + */ + void EnableButtons( Toolkit::TextSelectionPopup::Buttons buttonsToEnable ); + + /** * @brief Raises the toolbar's layer above the given @e target layer. * * @param[in] target The layer to get above of. */ void RaiseAbove( Layer target ); + /** + * @brief Show the Popup if not being shown + */ + void ShowPopup(); + + /** + * @brief Hide the Popup if shown + */ + void HidePopup(); + public: // Not intended for application developers /**