ADTF_DISPLAY_TOOLBOX
3.8.0 (ADTF 3.14.3)
|
Interface for managing a (context) menu. More...
Public Member Functions | |
ADTF_IID (IMenu, "menu.chewbacca.mixinlib.disptb.adtf.iid") | |
Define an interface id for this class. | |
virtual IMenu * | AddMenu (const tChar *strText)=0 |
Creates a new sub-menu for this menu. More... | |
virtual adtf::disptb::mixinlib::chewbacca::IMenuItem * | AddMenuItem (const tChar *strText)=0 |
Creates a new menu item. More... | |
virtual adtf::disptb::mixinlib::chewbacca::IMenuItem * | AddSeparator ()=0 |
Creates a seperator for this menu. More... | |
virtual tInt | GetMenuItemCount () const =0 |
Get number of menu items. More... | |
virtual IMenuItem * | GetMenuItem (tInt nIndex)=0 |
Get an item. More... | |
virtual tVoid | DeleteItems ()=0 |
Removes all items from the menu. | |
![]() | |
ADTF_IID (IMenuItem, "menuitem.chewbacca.mixinlib.disptb.adtf.iid") | |
Define an interface id for this class. | |
virtual tVoid | SetText (const tChar *strText)=0 |
Set the text of this menu item. More... | |
virtual tVoid | SetToolTip (const tChar *strToolTip)=0 |
Set the tool tip of this menu item. More... | |
virtual tVoid | SetStatusTip (const tChar *strStatusTip)=0 |
Set the status bar tip of this menu item. More... | |
virtual const tChar * | GetText () const =0 |
Get the text of this menu item. More... | |
virtual const tChar * | GetToolTip () const =0 |
Get the tool tip of this menu item. More... | |
virtual const tChar * | GetStatusTip () const =0 |
Get the status bar tip of this menu item. More... | |
virtual tVoid | SetSeparator (tBool bSeparator)=0 |
Mark this item as a separator. More... | |
virtual tVoid | SetCheckable (tBool bCheckable)=0 |
Mark this item as checkable. More... | |
virtual tVoid | SetChecked (tBool bChecked)=0 |
Set chack state of this item. More... | |
virtual tVoid | SetEnabled (tBool bEnabled)=0 |
Set enabled state of this item. More... | |
virtual tVoid | SetVisible (tBool bVisible)=0 |
Set visibility of this item. More... | |
virtual tBool | IsCheckable () const =0 |
Query whether the item is checkable. More... | |
virtual tBool | IsChecked () const =0 |
Query whether the item is checked. More... | |
virtual tBool | IsEnabled () const =0 |
Query whether the item is enabled. More... | |
virtual tBool | IsVisible () const =0 |
Query whether the item is visible. More... | |
virtual tBool | IsSeparator () const =0 |
Query whether the item is a separator. More... | |
virtual tVoid | SetEventHandler (IMenuEventSink *pEvent)=0 |
Set an event handler. More... | |
virtual adtf::disptb::mixinlib::chewbacca::IMenuEventSink * | GetEventHandler ()=0 |
Get the current event handler. More... | |
Interface for managing a (context) menu.
Definition at line 164 of file menu_intf.h.
|
pure virtual |
Creates a new sub-menu for this menu.
strText | [in] The caption of the sub-menu. |
|
pure virtual |
Creates a new menu item.
strText | [in] The caption of the item. |
|
pure virtual |
Creates a seperator for this menu.
|
pure virtual |
Get an item.
nIndex | [in] The index of the item in the menu. |
|
pure virtual |
Get number of menu items.