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_FloatAnimationImpl.h
20 * @brief This is the header file for the _FloatAnimationImpl class.
22 * This header file contains the declarations of the _FloatAnimationImpl class.
25 #ifndef _FUI_ANIM_INTERNAL_FLOAT_ANIMATION_IMPL_H_
26 #define _FUI_ANIM_INTERNAL_FLOAT_ANIMATION_IMPL_H_
28 #include <FUiAnimFloatAnimation.h>
30 namespace Tizen { namespace Ui { namespace Animations
33 class _FloatAnimationImpl
34 : public Tizen::Base::Object
39 * Destructor for %_FloatAnimationImpl class.
41 ~_FloatAnimationImpl(void);
44 * Default constructor for %_FloatAnimationImpl class.
46 _FloatAnimationImpl(FloatAnimation* pFloat);
49 * To copy float animation object
52 * @return An error code
53 * @param[in] floatAnimation Float animation object
54 * @exception E_SUCCESS The method was successful.
55 * @exception E_SYSTEM A system error occurred.
56 * @exception E_INVALID_ARG A specified input parameter is invalid.
58 result CopyFloatAnimationValue(const FloatAnimation& floatAnimation);
61 * Gets the animated value for the current time.
64 * @return An error code
65 * @param[in] actualProgress The current time value of the animation @n
66 * The value should be between @c 0 and 1
67 * @param[out] animatedValue The animated value for the current time passed as the input parameter
68 * @exception E_SUCCESS The method is successful.
69 * @exception E_INVALID_ARG A specified input parameter is invalid.
70 * @exception E_INVALID_STATE This instance has not been properly constructed.
71 * @exception E_SYSTEM A system error has occurred.
74 result GetAnimatedValue(float actualProgress, float& animatedValue) const;
77 * The start value of the animation
79 Tizen::Base::Float startValue;
82 * The end value of the animation
84 Tizen::Base::Float endValue;
89 * Private copy constructor.
91 _FloatAnimationImpl(const _FloatAnimationImpl& rhs);
94 * Private assignment operator.
96 _FloatAnimationImpl& operator =(const _FloatAnimationImpl& rhs);
99 * This is object of FloatAnimation class
102 FloatAnimation* __pFloatAnimation;
104 }; //_FloatAnimationImpl
106 }}} // Tizen::Ui::Animations
108 #endif //_FUI_ANIM_INTERNAL_FLOAT_ANIMATION_IMPL_H_