Menu Class Reference
This class groups widgets into menus. More...
#include <Menu.h>
Inherits MenuObject.
Collaboration diagram for Menu:

Public Member Functions | |
| Menu (XMLNode *xml) | |
| ~Menu () | |
| void | addWidget (Widget *child) |
| Widget * | getWidget (const char *name) |
Private Attributes | |
| ObjectStore< Widget > | store |
Detailed Description
This class groups widgets into menus.The Menu -class is responsible for managing the menus. It stores references to all added widgets.
The menu can be moved, rotated, scaled, etc. by using the methods provided by the SceneGraph -class. Destroying a menu is done by simply deleting it. The destructor of the Menu -class removes automatically all added widgets from memory and from the scenegraph.
The creation of menus and widgets is done by the MenuControl -class.
- Date:
- 24th of March 2007
- The menus are now created by the MenuControl -class. (23rd of April 2007)
Constructor & Destructor Documentation
| Menu::Menu | ( | XMLNode * | xml | ) |
The constructor creates a new menu.
| Menu::~Menu | ( | ) |
The destructor deletes all Widgets, which have been added to this menu.
Member Function Documentation
| void Menu::addWidget | ( | Widget * | child | ) |
This method adds a widget to the menu.
- Parameters:
-
child This is the Widget, which should be added.
| Widget * Menu::getWidget | ( | const char * | name | ) |
Member Data Documentation
ObjectStore<Widget> Menu::store [private] |
The documentation for this class was generated from the following files:
Generated on Wed Oct 20 16:11:58 2010 for inVRs by
1.5.8