X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Fdecorator%2Ftext-decorator.h;h=588d224375b95f8b5899377ad010dfa69406f5f5;hb=59c891ea969ceb2e8a9f3d146c91ccf476651640;hp=14e121285e8918caea061ec332a4c13b8ec8c78e;hpb=caa46059c4cd1c18f380b81487f83a395846e5df;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 14e1212..588d224 100644 --- a/dali-toolkit/internal/text/decorator/text-decorator.h +++ b/dali-toolkit/internal/text/decorator/text-decorator.h @@ -66,7 +66,9 @@ enum GrabHandleState { GRAB_HANDLE_TAPPED, GRAB_HANDLE_PRESSED, - GRAB_HANDLE_RELEASED + GRAB_HANDLE_RELEASED, + GRAB_HANDLE_SCROLLING, + GRAB_HANDLE_STOP_SCROLLING }; // The set the selection-handle positions etc. @@ -386,6 +388,53 @@ public: */ bool IsPopupActive() const; + /** + * @brief Sets the scroll threshold. + * + * It defines a square area inside the control, close to the edge. + * When the cursor enters this area, the decorator starts to send scroll events. + * + * @param[in] threshold The scroll threshold. + */ + void SetScrollThreshold( float threshold ); + + /** + * @brief Retrieves the scroll threshold. + * + * @retunr The scroll threshold. + */ + float GetScrollThreshold() const; + + /** + * @brief Sets the scroll speed. + * + * Is the distance the text is going to be scrolled during a scroll interval. + * + * @param[in] speed The scroll speed. + */ + void SetScrollSpeed( float speed ); + + /** + * @brief Retrieves the scroll speed. + * + * @return The scroll speed. + */ + float GetScrollSpeed() const; + + /** + * @brief Sets the scroll interval. + * + * @param[in] seconds The scroll interval in seconds. + */ + void SetScrollTickInterval( float seconds ); + + /** + * @brief Retrieves the scroll interval. + * + * @return The scroll interval. + */ + float GetScrollTickInterval() const; + protected: /**