nGuiContextMenu Class Reference
[Graphical User Interface]
#include <nguicontextmenu.h>
Inheritance diagram for nGuiContextMenu:
Detailed Description
A context menu base class. Implement OnEvent() behavior in a derived subclass.(C) 2004 RadonLabs GmbH
Definition at line 19 of file nguicontextmenu.h.
Public Member Functions | |
| nGuiContextMenu () | |
| constructor | |
| virtual | ~nGuiContextMenu () |
| destructor | |
| void | AddEntry (const char *title) |
| add a menu entry | |
| virtual void | OnShow () |
| called when widget is becoming visible | |
| virtual void | OnHide () |
| called when widget is becoming invisible | |
| virtual void | OnEvent (const nGuiEvent &event) |
| notify widget of an event | |
| int | GetSelectedIndex () const |
| get resulting selection index (-1 if no selection) | |
| const char * | GetSelectedEntry () const |
| get resulting selection entry text (0 if no selection) | |
Protected Attributes | |
| nArray< nString > | entryArray |
| nArray< nRef< nGuiTextButton > > | buttonArray |
| int | selectedIndex |
Constructor & Destructor Documentation
|
|
constructor
Definition at line 16 of file nguicontextmenu_main.cc. |
|
|
destructor
Definition at line 25 of file nguicontextmenu_main.cc. |
Member Function Documentation
|
|
add a menu entry Creates a text button as a menu entry Definition at line 51 of file nguicontextmenu.h. |
|
|
called when widget is becoming visible Attaches the text buttons and sizes to the proper size reset selection index Reimplemented from nGuiClientWindow. Definition at line 35 of file nguicontextmenu_main.cc. |
|
|
called when widget is becoming invisible Releases all buttons Reimplemented from nGuiClientWindow. Definition at line 124 of file nguicontextmenu_main.cc. |
|
|
notify widget of an event
Reimplemented from nGuiClientWindow. Definition at line 142 of file nguicontextmenu_main.cc. |
|
|
get resulting selection index (-1 if no selection)
Definition at line 62 of file nguicontextmenu.h. |
|
|
get resulting selection entry text (0 if no selection)
Definition at line 72 of file nguicontextmenu.h. |
Member Data Documentation
|
|
Definition at line 40 of file nguicontextmenu.h. |
|
|
Definition at line 41 of file nguicontextmenu.h. |
|
|
Definition at line 42 of file nguicontextmenu.h. |
The documentation for this class was generated from the following files: