ROVLib2
RISCOSC++applicationdevelopmentlibrary
|
#include <menuitem.h>
Public Member Functions | |
virtual eMenuHandled | Clicked (const bool bAdjust, void *pContext) |
void | AttachSubmenu (CMenu *pmMenu) |
void | AttachSubmenu (CWindow *pwWindow) |
![]() | |
CUnassignable (const CUnassignable &)=delete | |
CUnassignable & | operator= (const CUnassignable &)=delete |
CUnassignable () | |
Public Attributes | |
bool | m_bTicked |
bool | m_bDotted |
Protected Member Functions | |
CMenuItem () | |
~CMenuItem () | |
virtual tCoordinate | PopulateMenu (tMenuItem *pmiItem) |
Protected Attributes | |
CMenu * | m_pmSubmenu |
CWindow * | m_pwWindow |
Friends | |
class | CMenu |
Defines a class that holds a generic menu item
Definition at line 23 of file menuitem.h.
|
protected |
Creates a new menu item
Definition at line 9 of file menuitem.cpp.
|
protected |
Destroys a new menu item - note that it must be removed from any menus
Definition at line 17 of file menuitem.cpp.
void rov2::CMenuItem::AttachSubmenu | ( | CMenu * | pmMenu | ) |
Attach a submenu to this item
pmMenu | The menu to attach |
Definition at line 52 of file menuitem.cpp.
void rov2::CMenuItem::AttachSubmenu | ( | CWindow * | pwWindow | ) |
Attach a window as a submenu to this item
pwWindow | The window to attach |
Definition at line 46 of file menuitem.cpp.
|
virtual |
Called when this item is clicked on
bAdjust | True if ADJUST was used to select the item |
pContext | The context from the menu which was clicked on |
Definition at line 34 of file menuitem.cpp.
|
protectedvirtual |
Called to populate the menu.
pmiItem | Pointer to the WIMP menu item to fill in. |
Reimplemented in rov2::CTextMenuItem.
Definition at line 22 of file menuitem.cpp.
|
friend |
CMenu needs access to call PopulateMenu
Definition at line 26 of file menuitem.h.
bool rov2::CMenuItem::m_bDotted |
True if a dotted line appears after this item
Definition at line 33 of file menuitem.h.
bool rov2::CMenuItem::m_bTicked |
True if the item is ticked
Definition at line 30 of file menuitem.h.
|
protected |
The submenu (if it's a menu)
Definition at line 66 of file menuitem.h.
|
protected |
The submenu (if it's a window)
Definition at line 69 of file menuitem.h.