X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fdecorator%2Ftext-decorator.h;h=9f2c69300f5306a07e4fd1ca063bcc5b91c4f788;hp=9ea86c6d7bcfe0647d0f558b4d91fd52e043d184;hb=c11c7538e070434e84856ebd4af000dff4ca3f9a;hpb=10d2080e1d25b75347daa2f8c2dcee494fbcb175 diff --git a/dali-toolkit/internal/text/decorator/text-decorator.h b/dali-toolkit/internal/text/decorator/text-decorator.h index 9ea86c6..9f2c693 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 { @@ -191,19 +192,21 @@ public: * @param[in] cursor The cursor to set. * @param[in] x The x position relative to the top-left of the parent control. * @param[in] y The y position relative to the top-left of the parent control. - * @param[in] height The logical height of the cursor. + * @param[in] cursorHeight The logical height of the cursor. + * @param[in] lineHeight The logical height of the line. */ - void SetPosition( Cursor cursor, float x, float y, float height ); + void SetPosition( Cursor cursor, float x, float y, float cursorHeight, float lineHeight ); /** - * @brief Retrieves the position of a cursor. + * @brief Retrieves the position, height and lineHeight of a cursor. * * @param[in] cursor The cursor to get. * @param[out] x The x position relative to the top-left of the parent control. * @param[out] y The y position relative to the top-left of the parent control. - * @param[out] height The logical height of the cursor. + * @param[out] cursorHeight The logical height of the cursor. + * @param[out] lineHeight The logical height of the line. */ - void GetPosition( Cursor cursor, float& x, float& y, float& height ) const; + void GetPosition( Cursor cursor, float& x, float& y, float& cursorHeight, float& lineHeight ) const; /** * @brief Sets the color for a cursor. @@ -308,9 +311,9 @@ public: * @param[in] handle The handle to set. * @param[in] x The x position relative to the top-left of the parent control. * @param[in] y The y position relative to the top-left of the parent control. - * @param[in] cursorHeight The logical cursor height at this position. + * @param[in] lineHeight The logical line height at this position. */ - void SetPosition( SelectionHandle handle, float x, float y, float cursorHeight ); + void SetPosition( SelectionHandle handle, float x, float y, float lineHeight ); /** * @brief Retrieves the position of a selection handle. @@ -341,14 +344,32 @@ 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 AddHighlight( float x1, float y1, float x2, float y2 ); + + /** + * @brief Removes all of the previously added highlights. */ - void ShowPopup(); + void ClearHighlights(); /** - * @brief Hide the Copy and Paste Popup + * @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. */ - void HidePopup(); + bool IsPopupActive() const; protected: