CAknsMaskedBitmapItemDef Class Reference

class CAknsMaskedBitmapItemDef : public CAknsBitmapItemDef

Masked bitmap item definition. Masked bitmap item definition is derived from CAknsBitmapItemDef but additionally contains a second index specifying the mask. Item type for masked bitmap item definitions is always EAknsITMaskedBitmap.

This is a public class with exported functions. The class is not intended for derivation outside the library.

AknSkinSrv.lib

Since
2.0

Inherits from

Public Member Functions
~CAknsMaskedBitmapItemDef()
IMPORT_C TIntMaskIndex()
IMPORT_C CAknsMaskedBitmapItemDef *NewL(const TAknsItemID &, const TDesC &, const TInt, const TInt)
IMPORT_C CAknsMaskedBitmapItemDef *NewL(const TAknsItemID &)
IMPORT_C voidSetMaskIndex(const TInt)
Protected Member Functions
CAknsMaskedBitmapItemDef(const TAknsItemType, const TAknsItemID &, const TInt, const TInt)
Inherited Functions
CAknsBitmapItemDef::CAknsBitmapItemDef(const TAknsItemType,const TAknsItemID &,const TInt)
CAknsBitmapItemDef::Filename()const
CAknsBitmapItemDef::Index()const
CAknsBitmapItemDef::NewL(const TAknsItemID &,const TDesC &,const TInt)
CAknsBitmapItemDef::SetFilename(const TDesC &)
CAknsBitmapItemDef::SetFilenameL(const TDesC &)
CAknsBitmapItemDef::SetIndex(const TInt)
CAknsBitmapItemDef::~CAknsBitmapItemDef()
CAknsImageItemDef::Attributes()const
CAknsImageItemDef::CAknsImageItemDef(const TAknsItemType,const TAknsItemID &)
CAknsImageItemDef::SetAttributesL(const TAknsImageAttributeData &)
CAknsImageItemDef::~CAknsImageItemDef()
CAknsItemDef::CAknsItemDef(const TAknsItemType,const TAknsItemID &)
CAknsItemDef::ID()const
CAknsItemDef::LinearOrder(const CAknsItemDef &,const CAknsItemDef &)
CAknsItemDef::Type()const
CAknsItemDef::~CAknsItemDef()
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
TInt iMaskIndex
Inherited Attributes
CAknsBitmapItemDef::iFilename
CAknsBitmapItemDef::iFilenameBuf
CAknsBitmapItemDef::iIndex
CAknsImageItemDef::iAttributeData
CAknsItemDef::iID
CAknsItemDef::iSpare1
CAknsItemDef::iSpare2
CAknsItemDef::iType

Constructor & Destructor Documentation

CAknsMaskedBitmapItemDef(const TAknsItemType, const TAknsItemID &, const TInt, const TInt)

CAknsMaskedBitmapItemDef(const TAknsItemTypeaType,
const TAknsItemID &aID,
const TIntaIndex,
const TIntaMaskIndex
)[protected]

C++ constructor for internal use. Constructs masked bitmap item definition object with given ID and bitmap indices. Filename needs to be set separately.

Parameters

const TAknsItemType aTypeType of the definition object. While this is always EAknsITMaskedBitmap for CAknsMaskedBitmapItemDef objects, derived classes may specify other values.
const TAknsItemID & aIDItem ID of the new item definition.
const TInt aIndexIndex of the bitmap of the new item definition.
const TInt aMaskIndexIndex of the bitmap mask of the new definition.

~CAknsMaskedBitmapItemDef()

~CAknsMaskedBitmapItemDef()[virtual]

Destructor. Provided for completeness, does not actually do anything.

Member Functions Documentation

MaskIndex()

IMPORT_C TIntMaskIndex()const

Returns bitmap file index for bitmap mask.

Since
2.0

NewL(const TAknsItemID &, const TDesC &, const TInt, const TInt)

IMPORT_C CAknsMaskedBitmapItemDef *NewL(const TAknsItemID &aID,
const TDesC &aFilename,
const TIntaIndex,
const TIntaMaskIndex
)[static]

Two-phased constructor, complete initialization. Constructs a new masked bitmap item definition object.

Exceptions:
If allocation fails, function leaves with a system-wide error code.

Parameters

const TAknsItemID & aIDItem ID of the new object.
const TDesC & aFilenameFilename of the bitmap. Internal descriptor is constructed to point to the same data as the given one. Ownership of the original descriptor stays with the caller and it must ensure that the lifetime of the descriptor is appropriate.
const TInt aIndexIndex of the bitmap in the bitmap file.
const TInt aMaskIndexIndex of the mask in the same bitmap file.

NewL(const TAknsItemID &)

IMPORT_C CAknsMaskedBitmapItemDef *NewL(const TAknsItemID &aID)[static]

Two-phased constructor, partial initialization. Constructs a new masked bitmap item definition object. Bitmap filename and indices must be set by SetFilename or SetFilenameL, SetIndex and SetMaskIndex.

Exceptions:
If allocation fails, function leaves with a system-wide error code.

Parameters

const TAknsItemID & aIDItem ID of the new object.

SetMaskIndex(const TInt)

IMPORT_C voidSetMaskIndex(const TIntaMaskIndex)

Sets index of mask in the bitmap file for this item definition.

Since
2.0

Parameters

const TInt aMaskIndexNew index.

Member Data Documentation

TInt iMaskIndex

TInt iMaskIndex[protected]