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 TBool Flash ()
IMPORT_C TAknsBmpAnimFrameInfo * FrameInfos ()
IMPORT_C TInt16 FrameInterval ()
IMPORT_C TBool LastFrameBackground ()
IMPORT_C CAknsBmpAnimItemData * NewL ()
IMPORT_C TInt16 PlayMode ()
IMPORT_C void SetFlash (const TBool )
IMPORT_C void SetFrameInfosL (const TAknsBmpAnimFrameInfo *)
IMPORT_C void SetFrameInterval (const TInt16 )
IMPORT_C void SetLastFrameBackground ( TBool )
IMPORT_C void SetPlayMode (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 TAknsItemType aType ) [protected]

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

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.

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 TInt16 FrameInterval ( ) const

Retrieves the frame interval.

Since
2.0

LastFrameBackground()

IMPORT_C TBool LastFrameBackground ( ) 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 TInt16 PlayMode ( ) const

Retrieves the play mode.

Since
2.0

SetFlash(const TBool)

IMPORT_C void SetFlash ( const TBool aFlash )

Sets the flash property for the entire animation.

Since
2.0

Parameters

const TBool aFlash Flash flag value.

SetFrameInfosL(const TAknsBmpAnimFrameInfo *)

IMPORT_C void SetFrameInfosL ( 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 * 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.

Since
2.0

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).

Since
2.0

Parameters

TBool aLastFrameBg Boolean value.

SetPlayMode(const TInt16)

IMPORT_C void SetPlayMode ( const TInt16 aPlayMode )

Sets the play mode for the entire animation.

Since
2.0

Parameters

const TInt16 aPlayMode Play 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]