Public Types | |
enum | PROPERTYCHANGES { SELECTED = 1, DESELECTED = 2 } |
Public Member Functions | |
Menu (const std::string &label) | |
Menu (Icon *icon, const std::string &label) | |
void | add (MenuItem *menuItem) |
void | remove (MenuItem *menuItem) |
void | setPopupMenuVisible (bool visible) |
const PopupMenu & | getPopupMenu () const |
bool | isPopupMenuVisible () const |
virtual bool | canHoldPermanentFocus () const |
|
Create a new menu with the given text.
|
|
Add a MenuItem to this menu. |
|
Removes a menuitem from this menu. |
|
Set the visible state of the PopupMenu containing the MenuItems. This can be used to programatically set the visibility state of the PopupMenu. |
|
|
Returns the visibility state of the PopupMenu and thus the MenuItems contained by this Menu. |
|
Returns wether or not this Component can be a permanent focus owner. This is true by default, except for things like MenuItems, where a menu is the permanent focus owner and a menuitem merely a focus owner. Reimplemented from ui::MenuItem. |