class CAknsMaskedBitmapItemData : public CAknsBitmapItemData |
Masked bitmap item data. Masked bitmap item data contains (in addition to base class members) an additional member of type CFbsBitmap for the bitmap mask. Item type for bitmap item data is always EAknsITMaskedBitmap.
This is a public class with exported functions. The class is not intended for derivation outside the library.
AknSkins.lib
2.0
Public Member Functions | |
---|---|
~CAknsMaskedBitmapItemData() | |
IMPORT_C void | DestroyAndSetMask(CFbsBitmap *) |
IMPORT_C CFbsBitmap * | Mask() |
IMPORT_C CAknsMaskedBitmapItemData * | NewL() |
IMPORT_C void | SetMask(CFbsBitmap *) |
Protected Member Functions | |
---|---|
CAknsMaskedBitmapItemData(const TAknsItemType) |
Protected Attributes | |
---|---|
CFbsBitmap * | iMask |
Inherited Attributes | |
---|---|
CAknsBitmapItemData::iBitmap | |
CAknsImageItemData::iAttributeData | |
CAknsImageItemData::iDrawRect | |
CAknsImageItemData::iParentIID | |
CAknsItemData::iType |
CAknsMaskedBitmapItemData | ( | const TAknsItemType | aType | ) | [protected] |
C++ protected constructor. Constructs a new CAknsMaskedBitmapItemData with bitmaps set to NULL.
const TAknsItemType aType | Item type of the new item data object. While this is always EAknsITMaskedBitmap for instances of this class, derived classes may specify another value. |
~CAknsMaskedBitmapItemData | ( | ) | [virtual] |
Destructor. Deletes bitmap objects, if present.
IMPORT_C void | DestroyAndSetMask | ( | CFbsBitmap * | aMask | ) |
Sets the mask bitmap object for this item data instance and destroys previous one, if any.
2.0
CFbsBitmap * aMask | Pointer to mask instance. Ownership of the bitmap object is transferred to item data. NULL value is also valid. |
IMPORT_C CFbsBitmap * | Mask | ( | ) |
Returns the current bitmap mask object owned by item data instance.
2.0
Pointer to mask instance, or NULL if none is currently associated with this item data.
IMPORT_C CAknsMaskedBitmapItemData * | NewL | ( | ) | [static] |
Two-phased constructor. Constructs a new CAknsMaskedBitmapItemData object with bitmaps set to NULL. Bitmaps must be set afterwards by using SetBitmap(CFbsBitmap* aBitmap) and SetMask(CFbsBitmap* aBitmap) methods.
Newly constructed CAknsMaskedBitmapItemData object.
Exceptions:
If allocation fails, function leaves with a system-wide error code.
IMPORT_C void | SetMask | ( | CFbsBitmap * | aMask | ) |
Sets the mask bitmap object for this item data instance. NULL value can be used to detach bitmap mask from item data.
2.0
CFbsBitmap * aMask | Pointer to mask instance. Ownership of the bitmap object is transferred to item data. NULL value is also valid. |