Added api to specify a playing range inside an animation
[platform/core/uifw/dali-core.git] / dali / internal / event / animation / animation-impl.h
index 7405824..a207091 100644 (file)
@@ -788,14 +788,14 @@ public:
   void Resize(Actor& actor, const Vector3& size, AlphaFunction alpha, float delaySeconds, float durationSeconds);
 
   /*
-   * @copydoc Dali::Animation::GetCurrentProgress()
+   * @copydoc Dali::Animation::SetCurrentProgress()
    */
-  float GetCurrentProgress();
+  void SetCurrentProgress(float progress);
 
   /*
-   * @copydoc Dali::Animation::SetCurrentProgress()
+   * @copydoc Dali::Animation::GetCurrentProgress()
    */
-  void SetCurrentProgress(float progress);
+  float GetCurrentProgress();
 
   /*
    * @copydoc Dali::Animation::SetSpeedFactor()
@@ -807,6 +807,16 @@ public:
    */
   float GetSpeedFactor() const;
 
+  /*
+   * @copydoc Dali::Animation::SetPlayRange()
+   */
+  void SetPlayRange( const Vector2& range );
+
+  /*
+   * @copydoc Dali::Animation::GetPlayRange
+   */
+  Vector2 GetPlayRange() const;
+
 public: // For connecting animators to animations
 
   /**
@@ -905,6 +915,7 @@ private:
   float mDurationSeconds;
   float mSpeedFactor;
   bool mIsLooping;
+  Vector2 mPlayRange;
   EndAction mEndAction;
   EndAction mDestroyAction;
   AlphaFunction mDefaultAlpha;