#include <Malena/Graphics/Controls/NativeMenuBar.h>
|
| Menu & | addItem (const std::string &label, std::function< void()> action) |
| | Add a clickable menu item with a callback.
|
| Menu & | addSeparator () |
| | Add a horizontal separator line.
|
| const std::vector< Item > & | getItems () const |
| const std::string & | getLabel () const |
Definition at line 52 of file NativeMenuBar.h.
◆ addItem()
| Menu & ml::NativeMenuBar::Menu::addItem |
( |
const std::string & | label, |
|
|
std::function< void()> | action ) |
Add a clickable menu item with a callback.
◆ addSeparator()
| Menu & ml::NativeMenuBar::Menu::addSeparator |
( |
| ) |
|
Add a horizontal separator line.
◆ getItems()
| const std::vector< Item > & ml::NativeMenuBar::Menu::getItems |
( |
| ) |
const |
|
inline |
◆ getLabel()
| const std::string & ml::NativeMenuBar::Menu::getLabel |
( |
| ) |
const |
|
inline |
◆ NativeMenuBar
| friend class NativeMenuBar |
|
friend |
The documentation for this class was generated from the following file: