Added api function to specify speed factor of an animation
[platform/core/uifw/dali-core.git] / dali / internal / event / animation / animation-impl.h
index 775637c..7405824 100644 (file)
@@ -797,6 +797,16 @@ public:
    */
   void SetCurrentProgress(float progress);
 
+  /*
+   * @copydoc Dali::Animation::SetSpeedFactor()
+   */
+  void SetSpeedFactor( float factor );
+
+  /*
+   * @copydoc Dali::Animation::GetSpeedFactor()
+   */
+  float GetSpeedFactor() const;
+
 public: // For connecting animators to animations
 
   /**
@@ -893,6 +903,7 @@ private:
 
   // Cached for public getters
   float mDurationSeconds;
+  float mSpeedFactor;
   bool mIsLooping;
   EndAction mEndAction;
   EndAction mDestroyAction;