Merge "Fix for lock up on Text Shadow ( not clearing up rendertask correctly )" into...
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / decorator / text-decorator.h
index 9ea86c6..f0bfd39 100644 (file)
@@ -22,6 +22,7 @@
 #include <dali/public-api/common/intrusive-ptr.h>
 #include <dali/public-api/object/ref-object.h>
 #include <dali/public-api/math/rect.h>
+#include <dali/public-api/math/vector2.h>
 
 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: