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_IntegerAnimationImpl.h
20 * @brief This is the header file for the _IntegerAnimationImpl class.
22 * This header file contains the declarations of the _IntegerAnimationImpl class.
25 #ifndef _FUI_ANIM_INTERNAL_INTEGER_ANIMATION_IMPL_H_
26 #define _FUI_ANIM_INTERNAL_INTEGER_ANIMATION_IMPL_H_
28 #include <FUiAnimIntegerAnimation.h>
31 namespace Tizen { namespace Ui { namespace Animations
34 class _IntegerAnimationImpl
35 : public Tizen::Base::Object
40 * Destructor for %_IntegerAnimationImpl class.
42 ~_IntegerAnimationImpl(void);
45 * Default constructor for %_IntegerAnimationImpl class.
47 _IntegerAnimationImpl(IntegerAnimation* pInt);
50 * To copy Integer animation object
53 * @return An error code
54 * @param[in] integerAnimation Dimension animation object
55 * @exception E_SUCCESS The method was successful.
56 * @exception E_SYSTEM A system error occurred.
57 * @exception E_INVALID_ARG A specified input parameter is invalid.
59 result CopyIntegerAnimationValue(const IntegerAnimation& integerAnimation);
62 * Gets the animated value for the current time.
65 * @return An error code
66 * @param[in] actualProgress The current time value of the animation @n
67 * The value should be between @c 0 and 1
68 * @param[out] animatedValue The animated value for the current time passed as the input parameter
69 * @exception E_SUCCESS The method is successful.
70 * @exception E_INVALID_ARG A specified input parameter is invalid.
71 * @exception E_INVALID_STATE This instance has not been properly constructed.
72 * @exception E_SYSTEM A system error has occurred.
75 result GetAnimatedValue(float actualProgress, int& animatedValue) const;
78 * The start value of the animation
80 Tizen::Base::Integer startValue;
83 * The end value of the animation
85 Tizen::Base::Integer endValue;
90 * Private copy constructor.
92 _IntegerAnimationImpl(const _IntegerAnimationImpl& rhs);
95 * Private assignment operator.
97 _IntegerAnimationImpl& operator =(const _IntegerAnimationImpl& rhs);
100 * This is object of IntegerAnimation class
103 IntegerAnimation* __pIntegerAnimation;
104 }; //_IntegerAnimationImpl
106 }}} // Tizen::Ui::Animations
108 #endif //_FUI_ANIM_INTERNAL_INTEGER_ANIMATION_IMPL_H_