CAknsBmpAnimItemData Class Reference
class CAknsBmpAnimItemData : public CAknsImageTableItemData
|
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.
AknSkins.lib
Constructor & Destructor Documentation
CAknsBmpAnimItemData(const TAknsItemType)
Parameters
const
TAknsItemType
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 Functions Documentation
Flash()
IMPORT_C
TBool
|
Flash
|
(
|
)
|
const
|
Retrieves the flash property.
FrameInfos()
Returns pointer to the first entry in the frame property array, owned by this object.
FrameInterval()
IMPORT_C
TInt16
|
FrameInterval
|
(
|
)
|
const
|
Retrieves the frame interval.
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.
PlayMode()
IMPORT_C
TInt16
|
PlayMode
|
(
|
)
|
const
|
SetFlash(const TBool)
IMPORT_C void
|
SetFlash
|
(
|
const
TBool
|
aFlash
|
)
|
|
Sets the flash property for the entire animation.
Parameters
const
TBool
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.
Parameters
const
TAknsBmpAnimFrameInfo
* 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.
Parameters
const
TInt16
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).
Parameters
TBool
aLastFrameBg
|
Boolean value.
|
SetPlayMode(const TInt16)
IMPORT_C void
|
SetPlayMode
|
(
|
const
TInt16
|
aPlayMode
|
)
|
|
Sets the play mode for the entire animation.
Parameters
const
TInt16
aPlayMode
|
Play mode.
|
Member Data Documentation
TAknsBmpAnimFrameInfo * iFrameArray
TInt16
iFrameInterval
TInt16
|
iFrameInterval
|
[protected]
|
TBool
iLastFrameBackground
TBool
|
iLastFrameBackground
|
[protected]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.