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


Public Member Functions | |
| aedMenuBar () | |
| ~aedMenuBar () | |
| unsigned int | attachMenu (std::string title, aedMenu *menu, int pos=-1) |
| Attach a menu to a menu bar. | |
| void | detachMenu (unsigned int index) |
| Detach a menu from a menu bar. | |
| void | detachMenu (aedMenu *menu) |
| Detach a menu from a menu bar. | |
| int | wm_lbuttondown (Uint16 x, Uint16 y) |
| int | wm_mousemove (Uint16 x, Uint16 y, Uint16 dx, Uint16 dy) |
| int | wm_mouseleave () |
| void | render () |
Private Member Functions | |
| int | getIndexFromPixel (Uint16 x, Uint16 y, aedRect &rect) |
Private Attributes | |
| int | m_Highlight |
| int | m_Active |
| std::vector< aedMenu * > | m_Menus |
| aedMenuBar::aedMenuBar | ( | ) |
| aedMenuBar::~aedMenuBar | ( | ) |
| unsigned int aedMenuBar::attachMenu | ( | std::string | title, | |
| aedMenu * | menu, | |||
| int | pos = -1 | |||
| ) |
Attach a menu to a menu bar.
| title | title of the menu as displayed in the menu bar | |
| menu | pointer to the menu | |
| pos | position of the menu in the menu bar (-1 means end) |
| void aedMenuBar::detachMenu | ( | aedMenu * | menu | ) |
Detach a menu from a menu bar.
| menu | pointer to the menu to be removed |
| void aedMenuBar::detachMenu | ( | unsigned int | index | ) |
Detach a menu from a menu bar.
| index | index of the menu to be removed |
| int aedMenuBar::getIndexFromPixel | ( | Uint16 | x, | |
| Uint16 | y, | |||
| aedRect & | rect | |||
| ) | [private] |
| void aedMenuBar::render | ( | ) | [virtual] |
Reimplemented from aedWidget.
| int aedMenuBar::wm_lbuttondown | ( | Uint16 | x, | |
| Uint16 | y | |||
| ) | [virtual] |
Reimplemented from aedWidget.
| int aedMenuBar::wm_mouseleave | ( | ) | [virtual] |
Reimplemented from aedWidget.
| int aedMenuBar::wm_mousemove | ( | Uint16 | x, | |
| Uint16 | y, | |||
| Uint16 | dx, | |||
| Uint16 | dy | |||
| ) | [virtual] |
Reimplemented from aedWidget.
int aedMenuBar::m_Active [private] |
int aedMenuBar::m_Highlight [private] |
std::vector< aedMenu * > aedMenuBar::m_Menus [private] |
1.4.7