API published in: S60 1st Ed
Link against: avkon.lib
None
#include <aknbitmapanimation.h>
Inherits CAknControl.
Public Member Functions | |
| virtual IMPORT_C | ~CAknBitmapAnimation () |
| Destructor. | |
| IMPORT_C RBitmapAnim & | Animation () |
| gives access to RBitmapAnimation. | |
| IMPORT_C CBitmapAnimClientData * | BitmapAnimData () const |
| gives access to CBitmapAnimClientData. | |
| IMPORT_C TInt | CancelAnimation () |
| Cancels the animation. | |
| IMPORT_C void | SetFrameIndexL (TInt aIndex) |
| Sets the frame index, initialising the animation if necessary. | |
| IMPORT_C void | SetFrameIntervalL (TInt aFrameIntervalInMilliSeconds) |
| Sets the frame interval in milliSeconds, initialising the animation if necessary. | |
| IMPORT_C void | StartAnimationL () |
| Starts the animation, initialising the animation if necessary, and starting the timer if necessary. | |
| IMPORT_C void | SetScaleModeForAnimationFrames (TScaleMode aMode) |
| Sets the scale mode for the animation frames that is used when the animation frames are scaled to the size of the control. | |
| IMPORT_C void | SetScaleModeForAnimationBackgroundFrame (TScaleMode aMode) |
| Sets the scale mode for the animation background frame that is used when the animation background frame is scaled to the size of the control. | |
| IMPORT_C void | ExcludeAnimationFramesFromCache () |
| Excludes the animation frames from the icon cache. | |
| TInt | AnimationHasStarted (TBool aHasStarted) |
| Records whether the animation has started. | |
| IMPORT_C TBool | ConstructFromSkinL (const TAknsItemID &aItemID) |
| Construct the animation from skin. | |
| virtual IMPORT_C void | ConstructFromResourceL (TResourceReader &aResourceReader) |
| Construct animation from resource. | |
| virtual IMPORT_C TSize | MinimumSize () |
| Minimum size. | |
Static Public Member Functions | |
| static IMPORT_C CAknBitmapAnimation * | NewL () |
| 2 phase construction. | |
|
|
Destructor. |
|
|
gives access to RBitmapAnimation.
|
|
|
Records whether the animation has started. If there is a timer, it is cancelled.
|
|
|
gives access to CBitmapAnimClientData.
|
|
|
Cancels the animation.
|
|
|
Construct animation from resource. This can be called after a call to NewL. Can also be called after a failed attempt to call ConstructFromSkinL.
|
|
|
Construct the animation from skin. Usually this method should be called before ConstructFromResourceL, and if EFalse is returned the caller should try to construct the same animation with ConstructFromResourceL. The ownership of the constructed animation and its frames is vested in this class. Furthermore, the animation is not automatically updated during a skin change.
|
|
|
Excludes the animation frames from the icon cache. Note that this method should be called before setting the size of the control to be in effect. If the animation frames are created outside of the scope of this class method AknIconUtils::ExcludeFromCache should be called for animation frames to get the same effect. By default scalable animation frames are being put to icon cache after they are no longer used. This makes it possible to retrieve recently used animation frames fast without the need to render them again. Excluding infrequently used animation frames from icon cache could improve performance and memory usage of the system. Public since 3rd Ed FP1 |
|
|
Minimum size. |
|
|
2 phase construction. The pattern for constructing this class is non-standard. Call NewL, set the container window, then call the appropriate method to contruct from either skin or resource. |
|
|
Sets the frame index, initialising the animation if necessary.
|
|
|
Sets the frame interval in milliSeconds, initialising the animation if necessary.
|
|
|
Sets the scale mode for the animation background frame that is used when the animation background frame is scaled to the size of the control. Default scale mode is EAspectRatioPreserved. Public since 3rd Ed FP1
|
|
|
Sets the scale mode for the animation frames that is used when the animation frames are scaled to the size of the control. Default scale mode is EAspectRatioPreserved. Public since 3rd Ed FP1
|
|
|
Starts the animation, initialising the animation if necessary, and starting the timer if necessary. |