CAknsBmpAnimItemData Class Reference

#include <mw/AknsItemData.h>

Link against: AknSkins.lib

class CAknsBmpAnimItemData : public CAknsImageTableItemData
Protected Attributes
TBool iFlash
TAknsBmpAnimFrameInfo *iFrameArray
TInt16 iFrameInterval
TBool iLastFrameBackground
TInt16 iPlayMode
Public Member Functions
virtual ~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 Attributes
CAknsImageItemData::iAttributeData
CAknsImageItemData::iDrawRect
CAknsImageItemData::iParentIID
CAknsImageTableItemData::iImageArray
CAknsImageTableItemData::iNumberOfImages
CAknsItemData::iType
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()

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.

Since
2.0

Member Attribute Documentation

iFlash

TBool iFlash[protected]

Flash flag.

iFrameArray

TAknsBmpAnimFrameInfo *iFrameArray[protected]

Frame info array.

iFrameInterval

TInt16 iFrameInterval[protected]

Frame interval.

iLastFrameBackground

TBool iLastFrameBackground[protected]

Last frame used as background flag.

iPlayMode

TInt16 iPlayMode[protected]

Play mode.

Constructor & Destructor Documentation

CAknsBmpAnimItemData ( const TAknsItemType )

CAknsBmpAnimItemData(const TAknsItemTypeaType)[protected]

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

ParameterDescription
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 Function Documentation

Flash ( )

IMPORT_C TBoolFlash()const

Retrieves the flash property.

Since
2.0

Returns: Flash flag value.

FrameInfos ( )

IMPORT_C TAknsBmpAnimFrameInfo *FrameInfos()const

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

Since
2.0

Returns: Pointer to TAknsBmpAnimFrameInfo.

FrameInterval ( )

IMPORT_C TInt16FrameInterval()const

Retrieves the frame interval.

Since
2.0

Returns: Frame interval in milliseconds or -1.

LastFrameBackground ( )

IMPORT_C TBoolLastFrameBackground()const

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

Since
2.0

Returns: Boolean value.

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.

Returns: Newly constructed CAknsBmpAnimItemData object.

PlayMode ( )

IMPORT_C TInt16PlayMode()const

Retrieves the play mode.

Since
2.0

Returns: Play mode.

SetFlash ( const TBool )

IMPORT_C voidSetFlash(const TBoolaFlash)

Sets the flash property for the entire animation.

Since
2.0
ParameterDescription
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
ParameterDescription
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
ParameterDescription
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
ParameterDescription
aLastFrameBgBoolean value.

SetPlayMode ( const TInt16 )

IMPORT_C voidSetPlayMode(const TInt16aPlayMode)

Sets the play mode for the entire animation.

Since
2.0
ParameterDescription
aPlayModePlay mode.