X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-scroller.h;h=7804a4079d23584f1cde27062e10d01028ac3328;hb=3f83c5b8d17c02cb06043bd1d30ce4d4321f941c;hp=d4f92b9910668aad550e3a3737add7f708525683;hpb=348f6480ca53f0a1c869d2da077ee3b5e3e405eb;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/text-scroller.h b/dali-toolkit/internal/text/text-scroller.h index d4f92b9..7804a40 100644 --- a/dali-toolkit/internal/text/text-scroller.h +++ b/dali-toolkit/internal/text/text-scroller.h @@ -65,7 +65,7 @@ public: * @param[in] alignmentOffset alignment of source text * */ - void SetParameters( Actor sourceActor, const Size& controlSize, const Size& offScreenSize, CharacterDirection direction, const Vector2 alignmentOffset ); + void SetParameters( Actor sourceActor, const Size& controlSize, const Size& offScreenSize, CharacterDirection direction, float alignmentOffset ); /** * @brief Set the gap distance to elapse before the text wraps around @@ -104,6 +104,18 @@ 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 Get the camera used to look at source, should be added to the parent of target actor. * @return camera Actor */ @@ -161,9 +173,10 @@ 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 }; // TextScroller class