2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://floralicense.org/license/
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FUiAnim_AnimationBaseImpl.h
20 * @brief This is the header file for the _AnimationBaseImpl class.
22 * This header file contains the declarations of the _AnimationBaseImpl class. @n
25 #ifndef _FUI_ANIM_INTERNAL_ANIMATION_BASE_IMPL_H_
26 #define _FUI_ANIM_INTERNAL_ANIMATION_BASE_IMPL_H_
28 #include <FBaseColArrayList.h>
29 #include <FBaseFloat.h>
31 #include <FUiAnimAnimationBase.h>
34 namespace Tizen { namespace Ui { namespace Animations
39 * @class _AnimationBaseImpl
40 * @brief This is the header file for the _AnimationBaseImpl class.
43 * This header file contains the declarations of the _AnimationBaseImpl class. @n
46 class _AnimationBaseImpl
47 : public Tizen::Base::Object
51 * Default constructor for %_AnimationBaseImpl class.
53 _AnimationBaseImpl(AnimationBase* pAnimationBase);
56 * Destructor for %_AnimationBaseImpl class.
58 ~_AnimationBaseImpl(void);
61 * Initializes this instance of Animation with the specified parameters.
64 * @return An error code
65 * @exception E_SUCCESS The method was successful.
66 * @exception E_SYSTEM Failed to construct.
68 result Construct(void);
70 result RemoveKeyFrame(long time);
71 result RemoveKeyFrameAt(int index);
72 result RemoveAllKeyFrames(void);
75 * Compares the timeline values of two Animation instances
77 bool CompareTimingValues(const AnimationBase& animBase);
80 * Calculates actual progress based on timing function
82 float GetActualProgressValue(long currentTime);
85 * The List composing keyframe values
87 Tizen::Base::Collection::HashMapT< long, Tizen::Base::Object* > keyFrameList;
90 * The Bezier Control point - Time1
92 float controlPointTime1;
95 * The Bezier Control point - value 1
97 float controlPointValue1;
100 * The Bezier Control point - Time 2
102 float controlPointTime2;
105 * The Bezier Control point - value 2
107 float controlPointValue2;
110 * The Interpolator type
112 AnimationInterpolatorType interpolator;
117 Tizen::Base::String animName;
120 * The duration of animation in milliseconds
125 * Offset in milliseconds after the start of the animation
130 * The delay in milliseconds before animaiton start
135 * Number of times the animation has to be repeated
140 * AutoReverse the animation after completing the animation
145 * Sclae ratio of the animation duration
150 * Hold the animation end values or not
156 // This method is for internal use only. Using this method can cause behavioral, security-related,
157 // and consistency-related issues in the application.
159 // This is the assignment operator for this class.
163 _AnimationBaseImpl& operator =(const _AnimationBaseImpl&);
166 // This method is for internal use only. Using this method can cause behavioral, security-related,
167 // and consistency-related issues in the application.
169 // This is the copy constructor for this class.
173 _AnimationBaseImpl(const _AnimationBaseImpl& rhs);
176 // This method is for internal use only. Using this method can cause behavioral, security-related,
177 // and consistency-related issues in the application.
181 Tizen::Ui::Animations::AnimationBase* __pAnimationBase;
182 }; // _AnimationBaseImpl
184 }}} // Tizen::Ui::Animations
186 #endif //_FUI_ANIM_INTERNAL_ANIMATION_BASE_IMPL_H_