#include <aedMenu.h>
Inheritance diagram for aedMenu:


Public Member Functions | |
| aedMenu () | |
| ~aedMenu () | |
| unsigned int | addItem (const std::string &caption, aedMenu *child=NULL) |
| Add an item to a menu. | |
| void | removeItem (unsigned int index) |
| Remove an item from a menu. | |
| int | wm_lbuttondown (Uint16 x, Uint16 y) |
| int | wm_mousemove (Uint16 x, Uint16 y, Uint16 dx, Uint16 dy) |
| int | wm_mouseleave () |
| int | wm_mouseenter () |
| void | render () |
Private Member Functions | |
| int | getIndexFromPixel (Uint16 x, Uint16 y) |
Private Attributes | |
| int | m_Highlight |
| std::vector< aedMenuItem > | m_Items |
| aedMenu::aedMenu | ( | ) |
| aedMenu::~aedMenu | ( | ) |
| unsigned int aedMenu::addItem | ( | const std::string & | caption, | |
| aedMenu * | child = NULL | |||
| ) |
Add an item to a menu.
| caption | text that will be displayed in the menu | |
| child | optional pointer to a submenu |
| int aedMenu::getIndexFromPixel | ( | Uint16 | x, | |
| Uint16 | y | |||
| ) | [private] |
| void aedMenu::removeItem | ( | unsigned int | index | ) |
Remove an item from a menu.
| index | index of the item you wish to remove from the menu |
| void aedMenu::render | ( | ) | [virtual] |
Reimplemented from aedWidget.
| int aedMenu::wm_lbuttondown | ( | Uint16 | x, | |
| Uint16 | y | |||
| ) | [virtual] |
Reimplemented from aedWidget.
| int aedMenu::wm_mouseenter | ( | ) | [virtual] |
Reimplemented from aedWidget.
| int aedMenu::wm_mouseleave | ( | ) | [virtual] |
Reimplemented from aedWidget.
| int aedMenu::wm_mousemove | ( | Uint16 | x, | |
| Uint16 | y, | |||
| Uint16 | dx, | |||
| Uint16 | dy | |||
| ) | [virtual] |
Reimplemented from aedWidget.
int aedMenu::m_Highlight [private] |
std::vector< aedMenuItem > aedMenu::m_Items [private] |
1.4.7