X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fdecorator%2Ftext-decorator.h;h=f0bfd396c63bfa707f7303e1adaf5a122e1040d4;hb=826a077bb3183b5d317bfb22e14ab4e217d26f40;hp=9ea86c6d7bcfe0647d0f558b4d91fd52e043d184;hpb=3e17d9f63dedb5d669409301f8d9a3d8c393f979;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/decorator/text-decorator.h b/dali-toolkit/internal/text/decorator/text-decorator.h index 9ea86c6..f0bfd39 100644 --- a/dali-toolkit/internal/text/decorator/text-decorator.h +++ b/dali-toolkit/internal/text/decorator/text-decorator.h @@ -22,6 +22,7 @@ #include #include #include +#include namespace Dali { @@ -341,14 +342,33 @@ public: Dali::Image GetImage( SelectionHandle handle, SelectionHandleState state ) const; /** - * @brief Show the Copy and Paste Popup + * @brief Adds a quad to the existing selection highlights. + * + * @param[in] x1 The top-left x position. + * @param[in] y1 The top-left y position. + * @param[in] x2 The bottom-right x position. + * @param[in] y3 The bottom-right y position. */ - void ShowPopup(); + void AddHighlight( float x1, float y1, float x2, float y2 ); /** - * @brief Hide the Copy and Paste Popup + * @brief Removes all of the previously added highlights. */ - void HidePopup(); + void ClearHighlights(); + + /** + * @brief Set the Selection Popup to show or hide via the active flaf + * @param[in] active true to show, false to hide + */ + void SetPopupActive( bool active ); + + /** + * @brief Query whether the Selection Popup is active. + * + * @return True if the Selection Popup should be active. + */ + bool IsPopupActive() const; + protected: