2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0/
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 FUiCtrlAnimationFrame.h
20 * @brief This is the header file for the %AnimationFrame class.
22 * This header file contains the declarations of the %AnimationFrame class and its helper classes.
25 #ifndef _FUI_CTRL_ANIMATION_FRAME_H_
26 #define _FUI_CTRL_ANIMATION_FRAME_H_
28 #include <FBaseObject.h>
29 #include <FGrpBitmap.h>
31 namespace Tizen { namespace Ui { namespace Controls
34 class _AnimationFrameImpl;
37 * @class AnimationFrame
38 * @brief This class defines the common behavior of an %AnimationFrame control.
42 * The %AnimationFrame class defines the common behavior of an %AnimationFrame control. @n
43 * An animation frame includes an image to be displayed and its duration.
44 * The duration indicates how long the image is displayed when the animation is playing.
46 * For more information on the class features, see <a href="../org.tizen.native.appprogramming/html/guide/ui/implementing_animation.htm">Animation</a>.
49 class _OSP_EXPORT_ AnimationFrame
50 : public Tizen::Base::Object
55 * This is the default constructor for this class.
62 * Initializes this instance of %AnimationFrame with the specified image and duration.
66 * @param[in] frame The bitmap to display
67 * @param[in] duration The duration in milliseconds for which the bitmap is displayed
69 AnimationFrame(const Tizen::Graphics::Bitmap& frame, long duration);
72 * This is the destructor for this class.
76 ~AnimationFrame(void);
79 * Sets the bitmap to be displayed during animation play.
83 * @param[in] frame The bitmap to display
85 void SetFrame(const Tizen::Graphics::Bitmap& frame);
88 * Gets the bitmap to be displayed.
94 const Tizen::Graphics::Bitmap* GetFrame(void) const;
97 * Sets the duration for which the bitmap is displayed.
101 * @param[in] duration The duration in milliseconds for which the bitmap is displayed
103 void SetDuration(long duration);
106 * Gets the duration for which the bitmap is displayed.
110 * @return The duration value
112 long GetDuration(void) const;
116 // The implementation of this copy constructor is intentionally blank and declared as private to prohibit copying of objects.
118 AnimationFrame(const AnimationFrame& rhs);
121 // The implementation of this copy assignment operator is intentionally blank and declared as private to prohibit copying of objects.
123 AnimationFrame& operator =(const AnimationFrame& rhs);
126 _AnimationFrameImpl* __pAnimationFrameImpl;
130 }}} // Tizen::Ui::Controls
132 #endif // _FUI_CTRL_ANIMATION_FRAME_H_