CEikMenuPaneItem Class Reference
class CEikMenuPaneItem : public CBase |
Nested Classes and Structures
Detailed Description
The CEikMenuPaneItem class encapsulates the data needed to define a menu pane item and provides some of the functionality required to display the item.
Member Attribute Documentation
iData
Information from an SData struct.
iHotKeyCode
The menu pane item's hotkey text.
iPos
The y position of the menu pane item.
Constructor & Destructor Documentation
CEikMenuPaneItem ( )
IMPORT_C | CEikMenuPaneItem | ( | ) | |
~CEikMenuPaneItem ( )
IMPORT_C | ~CEikMenuPaneItem | ( | ) | |
Member Function Documentation
CreateIconL ( CFbsBitmap *, CFbsBitmap * )
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.
Parameter | Description | aBitmap | Picture bitmap. |
aMask | Mask bitmap. |
DrawItemIcon ( CWindowGc &, TRect, TBool, TInt )
Draws the menu item icon.
Parameter | Description | aGc | Graphics context to which the icon is drawn. |
aRect | Rectangle in which the icon is drawn. |
aDimmed | If ETrue the icon is drawn dimmed. |
aBitmapSpaceRequired | Length of one side of the square required to contain the bitmap. |
IconBitmap ( )
Gets a pointer to the menu item's icon picture bitmap. This does not imply transfer of ownership.
IconMask ( )
Gets a pointer to the menu item's icon mask bitmap. This does not imply transfer of ownership.
ScaleableText ( )
IMPORT_C TPtrC | ScaleableText | ( | ) | const |
Returns scaleable text. If there isn't scaleable text available then this method returns iData.iText.
Returns: Pointer to TPtrC object that contains scaleable text.
SetBitmapsOwnedExternally ( TBool )
IMPORT_C void | SetBitmapsOwnedExternally | ( | TBool | aOwnedExternally | ) | |
Sets icon bitmap ownership. Sets the menu item's icon bitmaps as externally owned if aOwnedExternally is ETrue.
Parameter | Description | aOwnedExternally | If ETrue bitmaps are set as externally owned. If EFalse bitmaps are set as not being externally owned. |
SetIcon ( CGulIcon * )
Sets a menu item icon. This replaces any icon already set for the menu item.
Parameter | Description | aIcon | Menu item icon consisting of a picture bitmap and a mask bitmap. |
SetIconBitmapL ( CFbsBitmap * )
Sets the picture bitmap. Transfers ownership unless the bitmaps are already owned externally.
Parameter | Description | aBitmap | Picture bitmap. |
SetIconMaskL ( CFbsBitmap * )
Sets the mask bitmap. Transfers ownership unless the bitmaps are already owned externally.
Parameter | Description | aMask | Mask bitmap. |
SetScaleableTextL ( const TDesC & )
IMPORT_C void | SetScaleableTextL | ( | const TDesC & | aText | ) | |
Sets scaleable text. iData.iText is set to first text version.
Parameter | Description | aText | Scalable text. |