Class-based interface to X-Plane SDK menus.
More...
|
| CMenu ()=default |
| Construct an uninitialized menu object.
|
|
CMenuItem | item (const std::string &name, std::function< void()> callback) |
| Appends an item to the menu and returns it.
|
|
CMenuItem | checkableItem (const std::string &name, bool checked, std::function< void(bool)> callback) |
| Appends a checkbox item to the menu and returns it.
|
|
void | removeItem (const CMenuItem &item) |
| Removes item from the menu.
|
|
void | sep () |
| Appends a separator to the menu.
|
|
CMenu | subMenu (const std::string &name) |
| Appends an item to the menu which opens a sub-menu, and returns it.
|
|
|
static CMenu | mainMenu () |
| Returns a menu object representing the top-level menu of all plugins.
|
|
Class-based interface to X-Plane SDK menus.
Definition at line 62 of file menus.h.
The documentation for this class was generated from the following file: