NB. empty strings are not acceptable names.
|
Public Member Functions |
| | vgui_menu () |
| | Constructor - creates an empty menu.
|
| | vgui_menu (vgui_menu const &) |
| | Constructor - creates a menu same as the given menu.
|
| void | operator= (vgui_menu const &) |
| | Make this menu equal to the given menu.
|
| | ~vgui_menu () |
| | Destructor - clears the menu.
|
| void | add (vcl_string const &, vgui_command_sptr c, vgui_key key=vgui_KEY_NULL, vgui_modifier modifiers=vgui_MODIFIER_NULL) |
| | Add given command to this menu.
|
| void | add (vcl_string const &, vgui_menu_callback_no_client_data f, vgui_key key=vgui_KEY_NULL, vgui_modifier modifiers=vgui_MODIFIER_NULL) |
| | Add given callback function to this menu.
|
| void | add (vcl_string const &, vgui_menu_callback f, void const *client_data, vgui_key key=vgui_KEY_NULL, vgui_modifier modifiers=vgui_MODIFIER_NULL) |
| | Add callback function with client data to this menu.
|
| void | add (vcl_string const &, vgui_menu const &, vgui_key key=vgui_KEY_NULL, vgui_modifier modifiers=vgui_MODIFIER_NULL) |
| | Add given submenu to this menu.
|
| void | separator () |
| | Add separator to this menu.
|
| void | include (vgui_menu const &that) |
| | Add the given menu to the end of this menu.
|
| void | clear () |
| | Empty this menu.
|
| unsigned | size () const |
| | Return the number of items in this menu.
|
| vgui_menu_item const & | operator[] (unsigned i) const |
| | Get the menu item using the [] index operator.
|
Private Attributes |
| vcl_vector< vgui_menu_item > | items |