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

Since
2.0
Public Member Functions
~CAknsBmpAnimItemData()
IMPORT_C TBoolFlash()
IMPORT_C TAknsBmpAnimFrameInfo *FrameInfos()
IMPORT_C TInt16FrameInterval()
IMPORT_C TBoolLastFrameBackground()
IMPORT_C CAknsBmpAnimItemData *NewL()
IMPORT_C TInt16PlayMode()
IMPORT_C voidSetFlash(const TBool)
IMPORT_C voidSetFrameInfosL(const TAknsBmpAnimFrameInfo *)
IMPORT_C voidSetFrameInterval(const TInt16)
IMPORT_C voidSetLastFrameBackground(TBool)
IMPORT_C voidSetPlayMode(const TInt16)
Protected Member Functions
CAknsBmpAnimItemData(const TAknsItemType)
Inherited Functions
CAknsImageItemData::Attributes()const
CAknsImageItemData::CAknsImageItemData(const TAknsItemType)
CAknsImageItemData::DrawRect()
CAknsImageItemData::ParentIID()
CAknsImageItemData::SetAttributesL(const TAknsImageAttributeData &)
CAknsImageItemData::SetDrawRect(const TRect &)
CAknsImageItemData::SetParentIID(const TAknsItemID &)
CAknsImageItemData::~CAknsImageItemData()
CAknsImageTableItemData::CAknsImageTableItemData(const TAknsItemType)
CAknsImageTableItemData::ImageIID(const TInt)const
CAknsImageTableItemData::Images()const
CAknsImageTableItemData::NumberOfImages()const
CAknsImageTableItemData::SetImagesL(const TInt,const TAknsItemID *)
CAknsImageTableItemData::~CAknsImageTableItemData()
CAknsItemData::CAknsItemData(const TAknsItemType)
CAknsItemData::SetType(const TAknsItemType)
CAknsItemData::Type()const
CAknsItemData::~CAknsItemData()
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Protected Attributes
TBool iFlash
TAknsBmpAnimFrameInfo *iFrameArray
TInt16 iFrameInterval
TBool iLastFrameBackground
TInt16 iPlayMode
Inherited Attributes
CAknsImageItemData::iAttributeData
CAknsImageItemData::iDrawRect
CAknsImageItemData::iParentIID
CAknsImageTableItemData::iImageArray
CAknsImageTableItemData::iNumberOfImages
CAknsItemData::iType

Constructor & Destructor Documentation

CAknsBmpAnimItemData(const TAknsItemType)

CAknsBmpAnimItemData(const TAknsItemTypeaType)[protected]

C++ protected constructor. Constructs a new CAknsBmpAnimItemData without an array.

Parameters

const TAknsItemType aTypeItem 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 TBoolFlash()const

Retrieves the flash property.

Since
2.0

FrameInfos()

IMPORT_C TAknsBmpAnimFrameInfo *FrameInfos()const

Returns pointer to the first entry in the frame property array, owned by this object.

Since
2.0

FrameInterval()

IMPORT_C TInt16FrameInterval()const

Retrieves the frame interval.

Since
2.0

LastFrameBackground()

IMPORT_C TBoolLastFrameBackground()const

Retrieves the flag value indicating whether the last frame should be interpreted as the background.

Since
2.0

NewL()

IMPORT_C CAknsBmpAnimItemData *NewL()[static]

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 TInt16PlayMode()const

Retrieves the play mode.

Since
2.0

SetFlash(const TBool)

IMPORT_C voidSetFlash(const TBoolaFlash)

Sets the flash property for the entire animation.

Since
2.0

Parameters

const TBool aFlashFlash flag value.

SetFrameInfosL(const TAknsBmpAnimFrameInfo *)

IMPORT_C voidSetFrameInfosL(const TAknsBmpAnimFrameInfo *aFrameInfos)

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.

Since
2.0

Parameters

const TAknsBmpAnimFrameInfo * aFrameInfosPointer to first frame info. Values are copied into an internal array.

SetFrameInterval(const TInt16)

IMPORT_C voidSetFrameInterval(const TInt16aFrameInterval)

Sets the frame interval for the entire animation.

Since
2.0

Parameters

const TInt16 aFrameIntervalFrame interval in milliseconds or -1.

SetLastFrameBackground(TBool)

IMPORT_C voidSetLastFrameBackground(TBoolaLastFrameBg)

Sets the flag indicating whether the last frame should be interpreted as the background (i.e. excluded from the animation itself).

Since
2.0

Parameters

TBool aLastFrameBgBoolean value.

SetPlayMode(const TInt16)

IMPORT_C voidSetPlayMode(const TInt16aPlayMode)

Sets the play mode for the entire animation.

Since
2.0

Parameters

const TInt16 aPlayModePlay mode.

Member Data Documentation

TBool iFlash

TBool iFlash[protected]

TAknsBmpAnimFrameInfo * iFrameArray

TAknsBmpAnimFrameInfo *iFrameArray[protected]

TInt16 iFrameInterval

TInt16 iFrameInterval[protected]

TBool iLastFrameBackground

TBool iLastFrameBackground[protected]

TInt16 iPlayMode

TInt16 iPlayMode[protected]