X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-scroller.h;h=f6c0b87ea90544d3c6ab2633f8a066e706f85b6d;hp=ef50b77bbb7de90b8325ff1247be1e44cb9b07c7;hb=6efee146b4c4e40df991b9e3425f97c66150df10;hpb=1e3e71f9aee86bdf912062370fa29c1fc062086c diff --git a/dali-toolkit/internal/text/text-scroller.h b/dali-toolkit/internal/text/text-scroller.h index ef50b77..f6c0b87 100644 --- a/dali-toolkit/internal/text/text-scroller.h +++ b/dali-toolkit/internal/text/text-scroller.h @@ -22,6 +22,7 @@ #include #include #include +#include // INTERNAL INCLUDES #include @@ -104,6 +105,30 @@ public: int GetLoopCount() const; /** + * @brief Set the delay time of scroll animation loop + * @param[in] float delay time seconds of loops + */ + void SetLoopDelay( float delay ); + + /** + * @brief Get the delay time of scroll + * @return float delay time seconds of loops + */ + float GetLoopDelay() const; + + /** + * @brief Set the mode of scrolling stop + * @param[in] stopMode type when text scrolling is stoped. + */ + void SetStopMode( DevelTextLabel::AutoScrollStopMode::Type stopMode ); + + /** + * @brief Get the mode of scrolling stop + * @return stopMode type when text scrolling is stoped. + */ + DevelTextLabel::AutoScrollStopMode::Type GetStopMode() const; + + /** * @brief Get the camera used to look at source, should be added to the parent of target actor. * @return camera Actor */ @@ -161,9 +186,11 @@ private: Property::Index mScrollDeltaIndex; // Property used by shader to represent distance to scroll Animation mScrollAnimation; // Animation used to update the mScrollDeltaIndex - int mScrollSpeed; ///< Speed which text should automatically scroll at - int mLoopCount; ///< Number of time the text should scroll - int mWrapGap; ///< Gap before text wraps around when scrolling + int mScrollSpeed; ///< Speed which text should automatically scroll at + int mLoopCount; ///< Number of time the text should scroll + float mLoopDelay; ///< Time delay of loop start + float mWrapGap; ///< Gap before text wraps around when scrolling + DevelTextLabel::AutoScrollStopMode::Type mStopMode; ///< Stop mode of scrolling text, when loop count is 0. }; // TextScroller class