Location:
eikmenup.h
Link against:
eikcoctl.lib
CEikMenuPaneItem
Supported from 6.0
A menu item in a menu pane.
|
Defined in CEikMenuPaneItem:
CEikMenuPaneItem(), ConstructFromResourceL(), CreateIconL(), DrawItemIcon(), IconBitmap(), IconMask(), NewL(), NewLC(), SData, SetBitmapsOwnedExternally(), SetIcon(), SetIconBitmapL(), SetIconMaskL(), iData, iHotKeyCode, iPos, ~CEikMenuPaneItem()
Inherited from CBase:
operator new()
static CEikMenuPaneItem* NewL(TInt aResourceId);
Supported from 6.1
Allocates and constructs a new menu pane item from a MENU_ITEM resource with ID aResourceId.
Returns a pointer to the menu pane item and transfers ownership.
|
|
static CEikMenuPaneItem* NewLC(TInt aResourceId);
Supported from 6.1
Allocates and constructs a new menu pane item from a MENU_ITEM resource with ID aResourceId.
Returns a pointer to the menu pane item and transfers ownership, leaving the pointer on the cleanup stack.
|
|
void ConstructFromResourceL(TResourceReader& aReader);
Supported from 6.1
Completes construction of the menu pane item from a resource. This function is called by NewL() and NewLC().
|
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.
|
void DrawItemIcon(CWindowGc& aGc, TRect aRect, TBool aDimmed, TInt aBitmapSpaceRequired) const;
Draws the menu item icon.
|
CFbsBitmap* IconBitmap() const;
Gets a pointer to the menu item's icon picture bitmap.
This does not imply transfer of ownership.
|
CFbsBitmap* IconMask() const;
Returns a pointer to the menu item's icon mask bitmap.
This does not imply transfer of ownership.
|
void SetBitmapsOwnedExternally(TBool aOwnedExternally);
Sets icon bitmap ownership.
Sets the menu item's icon bitmaps as externally owned if aOwnedExternally is ETrue.
|
void SetIcon(CGulIcon* aIcon);
Sets a menu item icon.
This replaces any icon already set for the menu item.
|
void SetIconBitmapL(CFbsBitmap* aBitmap);
Sets the picture bitmap.
Transfers ownership unless the bitmaps are already owned externally.
|
void SetIconMaskL(CFbsBitmap* aMask);
Sets the mask bitmap.
Transfers ownership unless the bitmaps are already owned externally.
|
struct SData
Structure passed as an argument to CEikMenuPane::AddMenuItem() when dynamically adding a menu item to a pane.
See also MEikMenuObserver::DynInitMenuPaneL().
See also the MENU_ITEM resource for details of the resource interface to menu items.
Defined in CEikMenuPaneItem::SData:
Anonymous, ENominalTextLength, iCascadeId, iCommandId, iExtraText, iFlags, iText
AnonymousN/A
Nominal text length.
|
iCommandIdTInt iCommandId;
ID of the command to issue when the menu item using this SData is selected.
iCascadeIdTInt iCascadeId;
Resource ID of a menu pane to cascade from this item.
iFlagsTInt iFlags;
Flags used internally by CEikMenuPane and accessible through functions such as CEikMenuPane::SetItemDimmed().
iTextTBuf<ENominalTextLength> iText;
The text buffer displayed in the main area of the menu item.
iExtraTextTBuf<ENominalTextLength> iExtraText;
Additional descriptive text about the item. This is used by CEikMenuPane to display hotkey names.
TInt iPos
The y position of the menu pane item.