CEikMenuPaneItem Class Reference
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.
Nested Classes and Structures
Constructor & Destructor Documentation
CEikMenuPaneItem()
IMPORT_C | CEikMenuPaneItem | ( | ) | |
~CEikMenuPaneItem()
IMPORT_C | ~CEikMenuPaneItem | ( | ) | |
Member Functions Documentation
CreateExtendedDataBlock()
void | CreateExtendedDataBlock | ( | ) | [private, inline] |
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.
DrawItemIcon(CWindowGc &, TRect, TBool, TInt)
Draws the menu item icon.
Parameters
CWindowGc & aGc | Graphics context to which the icon is drawn. |
TRect aRect | Rectangle in which the icon is drawn. |
TBool aDimmed | If ETrue the icon is drawn dimmed. |
TInt aBitmapSpaceRequired | Length of one side of the square required to contain the bitmap. |
GetNominalText(const TDesC &)
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.
IsScaleableText(const TDesC &)
TBool
| IsScaleableText | ( | const TDesC & | aText | ) | const [private, inline] |
ScaleableText()
IMPORT_C TPtrC | ScaleableText | ( | ) | const |
Returns scaleable text. If there isn't scaleable text available then this method returns iData.iText.
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.
Parameters
TBool 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.
Parameters
CGulIcon * 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.
SetIconMaskL(CFbsBitmap *)
Sets the mask bitmap. Transfers ownership unless the bitmaps are already owned externally.
SetScaleableTextL(const TDesC &)
IMPORT_C void | SetScaleableTextL | ( | const TDesC & | aText | ) | |
Sets scaleable text. iData.iText is set to first text version.
Parameters
const TDesC & aText | Scalable text. |
Member Data Documentation
SData
iData
Information from an SData struct.
CExtendedItemData * iExtendedData
TInt
iHotKeyCode
The menu pane item's hotkey text.
TInt
iPos
The y position of the menu pane item.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.