class CAknsBitmapItemData : public CAknsImageItemData |
Bitmap item data. Bitmap item data contains (in addition to base class members) CFbsBitmap instance of the bitmap. Item type for bitmap item data is always EAknsITBitmap.
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 | |
---|---|
~CAknsBitmapItemData() | |
IMPORT_C CFbsBitmap * | Bitmap() |
IMPORT_C void | DestroyAndSetBitmap(CFbsBitmap *) |
IMPORT_C CAknsBitmapItemData * | NewL() |
IMPORT_C void | SetBitmap(CFbsBitmap *) |
Protected Member Functions | |
---|---|
CAknsBitmapItemData(const TAknsItemType) |
Protected Attributes | |
---|---|
CFbsBitmap * | iBitmap |
Inherited Attributes | |
---|---|
CAknsImageItemData::iAttributeData | |
CAknsImageItemData::iDrawRect | |
CAknsImageItemData::iParentIID | |
CAknsItemData::iType |
CAknsBitmapItemData | ( | const TAknsItemType | aType | ) | [protected] |
C++ protected constructor. Constructs a new CAknsBitmapItemData with bitmap set to NULL.
const TAknsItemType aType | Item type of the new item data object. While this is always EAknsITBitmap for instances of this class, derived classes may specify another value. |
~CAknsBitmapItemData | ( | ) | [virtual] |
Destructor. Deletes bitmap object, if present.
IMPORT_C CFbsBitmap * | Bitmap | ( | ) |
Returns the current bitmap object owned by item data instance.
2.0
Pointer to bitmap instance, or NULL if none is currently associated with this item data.
IMPORT_C void | DestroyAndSetBitmap | ( | CFbsBitmap * | aBitmap | ) |
Sets the bitmap object for this item data instance and destroys previous one, if any.
2.0
CFbsBitmap * aBitmap | Pointer to bitmap instance. Ownership of the bitmap object is transferred to item data. NULL value is also valid. |
IMPORT_C CAknsBitmapItemData * | NewL | ( | ) | [static] |
Two-phased constructor. Constructs a new CAknsBitmapItemData object with bitmap set to NULL. Bitmap must be set afterwards by using SetBitmap(CFbsBitmap* aBitmap) method.
Newly constructed CAknsBitmapItemData object.
Exceptions:
If allocation fails, function leaves with a system-wide error code.
IMPORT_C void | SetBitmap | ( | CFbsBitmap * | aBitmap | ) |
Sets the bitmap object for this item data instance.
2.0
NULLvalue can be used to detach bitmap from item data.
CFbsBitmap * aBitmap | Pointer to bitmap instance. Ownership of the bitmap object is transferred to item data. NULL value is also valid. |