CAknsBmpAnimItemData Class Reference
#include
<mw/AknsItemData.h>
Link against: AknSkins.lib
class CAknsBmpAnimItemData : public CAknsImageTableItemData |
Detailed Description
Bitmap animation item data. Bitmap animation item data contains (in addition to base class members), animation properties as well as an array containing frame properties Item type for bitmap animation item data objects is always EAknsITBmpAnim.
This is a public class with exported functions. The class is not intended for derivation outside the library.
Member Attribute Documentation
iFrameInterval
TInt16
| iFrameInterval | [protected] |
iLastFrameBackground
TBool
| iLastFrameBackground | [protected] |
Last frame used as background flag.
Constructor & Destructor Documentation
CAknsBmpAnimItemData ( const TAknsItemType )
Parameter | Description | aType | Item type of the new item data object. While this is always EAknsITBmpAnim for instances of this class, derived classes may specify another value. |
~CAknsBmpAnimItemData ( )
~CAknsBmpAnimItemData | ( | ) | [virtual] |
Destructor. Destroys arrays.
Member Function Documentation
Flash ( )
IMPORT_C TBool | Flash | ( | ) | const |
Retrieves the flash property.
Returns: Flash flag value.
FrameInfos ( )
Returns pointer to the first entry in the frame property array, owned by this object.
Returns: Pointer to TAknsBmpAnimFrameInfo.
FrameInterval ( )
IMPORT_C TInt16 | FrameInterval | ( | ) | const |
Retrieves the frame interval.
Returns: Frame interval in milliseconds or -1.
LastFrameBackground ( )
IMPORT_C TBool | LastFrameBackground | ( | ) | const |
Retrieves the flag value indicating whether the last frame should be interpreted as the background.
NewL ( )
Two-phased constructor. Constructs a new CAknsBmpAnimItemData object. Values must be set separately using SetImagesL and SetFrameInfosL.
-
Exceptions:
- If allocation fails, function leaves with a system-wide error code.
Returns: Newly constructed CAknsBmpAnimItemData object.
PlayMode ( )
IMPORT_C TInt16 | PlayMode | ( | ) | const |
SetFlash ( const TBool )
IMPORT_C void | SetFlash | ( | const TBool | aFlash | ) | |
Sets the flash property for the entire animation.
Parameter | Description | aFlash | Flash flag value. |
SetFrameInfosL ( const TAknsBmpAnimFrameInfo * )
Sets frame property values for this item data instance.
The number of entries in the given array must match the number of images in the image table. Therefore SetFrameInfosL must be called only after SetImagesL has already been called.
Parameter | Description | aFrameInfos | Pointer to first frame info. Values are copied into an internal array. |
SetFrameInterval ( const TInt16 )
IMPORT_C void | SetFrameInterval | ( | const TInt16 | aFrameInterval | ) | |
Sets the frame interval for the entire animation.
Parameter | Description | aFrameInterval | Frame interval in milliseconds or -1. |
SetLastFrameBackground ( TBool )
IMPORT_C void | SetLastFrameBackground | ( | TBool | aLastFrameBg | ) | |
Sets the flag indicating whether the last frame should be interpreted as the background (i.e. excluded from the animation itself).
Parameter | Description | aLastFrameBg | Boolean value. |
SetPlayMode ( const TInt16 )
IMPORT_C void | SetPlayMode | ( | const TInt16 | aPlayMode | ) | |
Sets the play mode for the entire animation.
Parameter | Description | aPlayMode | Play mode. |