| class CEikMenuPaneItem : public CBase |
The CEikMenuPaneItem class encapsulates the data needed to define a menu pane item and provides some of the functionality required to display the item.
ER5U
| Public Member Functions | |
|---|---|
| CEikMenuPaneItem() | |
| ~CEikMenuPaneItem() | |
| IMPORT_C void | CreateIconL(CFbsBitmap *, CFbsBitmap *) |
| IMPORT_C void | DrawItemIcon(CWindowGc &, TRect, TBool, TInt) |
| IMPORT_C CFbsBitmap * | IconBitmap() |
| IMPORT_C CFbsBitmap * | IconMask() |
| IMPORT_C TPtrC | ScaleableText() |
| IMPORT_C void | SetBitmapsOwnedExternally(TBool) |
| IMPORT_C void | SetIcon(CGulIcon *) |
| IMPORT_C void | SetIconBitmapL(CFbsBitmap *) |
| IMPORT_C void | SetIconMaskL(CFbsBitmap *) |
| IMPORT_C void | SetScaleableTextL(const TDesC &) |
| Private Member Functions | |
|---|---|
| void | CreateExtendedDataBlock() |
| TPtrC | GetNominalText(const TDesC &) |
| TBool | IsScaleableText(const TDesC &) |
| Public Attributes | |
|---|---|
| SData | iData |
| TInt | iHotKeyCode |
| TInt | iPos |
| Private Attributes | |
|---|---|
| CExtendedItemData * | iExtendedData |
| IMPORT_C void | CreateIconL | ( | CFbsBitmap * | aBitmap, |
| CFbsBitmap * | aMask | |||
| ) | ||||
Construct an icon from bitmaps.
Constructs a new icon for the menu item, taking ownership of the picture bitmap aBitmap and the mask bitmap aMask unless the bitmaps are externally owned.
| CFbsBitmap * aBitmap | Picture bitmap. |
| CFbsBitmap * aMask | Mask bitmap. |
| IMPORT_C void | DrawItemIcon | ( | CWindowGc & | aGc, |
| TRect | aRect, | |||
| TBool | aDimmed, | |||
| TInt | aBitmapSpaceRequired | |||
| ) | const | |||
Draws the menu item icon.
| TPtrC | GetNominalText | ( | const TDesC & | aText | ) | [private] |
| const TDesC & aText |
| IMPORT_C CFbsBitmap * | IconBitmap | ( | ) | const |
Gets a pointer to the menu item's icon picture bitmap. This does not imply transfer of ownership.
Picture bitmap.
| IMPORT_C CFbsBitmap * | IconMask | ( | ) | const |
Gets a pointer to the menu item's icon mask bitmap. This does not imply transfer of ownership.
Mask bitmap.
| TBool | IsScaleableText | ( | const TDesC & | aText | ) | const [private, inline] |
| const TDesC & aText |
| IMPORT_C TPtrC | ScaleableText | ( | ) | const |
Returns scaleable text. If there isn't scaleable text available then this method returns iData.iText.
Pointer to TPtrC object that contains scaleable text.
| IMPORT_C void | SetBitmapsOwnedExternally | ( | TBool | aOwnedExternally | ) |
Sets icon bitmap ownership. Sets the menu item's icon bitmaps as externally owned if aOwnedExternally is ETrue.
| TBool aOwnedExternally | If ETrue bitmaps are set as externally owned. If EFalse bitmaps are set as not being externally owned. |
| IMPORT_C void | SetIcon | ( | CGulIcon * | aIcon | ) |
Sets a menu item icon. This replaces any icon already set for the menu item.
| CGulIcon * aIcon | Menu item icon consisting of a picture bitmap and a mask bitmap. |
| IMPORT_C void | SetIconBitmapL | ( | CFbsBitmap * | aBitmap | ) |
Sets the picture bitmap. Transfers ownership unless the bitmaps are already owned externally.
| CFbsBitmap * aBitmap | Picture bitmap. |
| IMPORT_C void | SetIconMaskL | ( | CFbsBitmap * | aMask | ) |
Sets the mask bitmap. Transfers ownership unless the bitmaps are already owned externally.
| CFbsBitmap * aMask | Mask bitmap. |
| IMPORT_C void | SetScaleableTextL | ( | const TDesC & | aText | ) |
Sets scaleable text. iData.iText is set to first text version.
| const TDesC & aText | Scalable text. |