MenuEntry struct
#include <Jazz2/UI/Windows/Menu.h>
Item of a menu.
Public static functions
Public functions
- auto IsSeparator() const -> bool
- Returns
trueif it's a separator.
Public variables
- String Label
- Text, an entry without it is a separator.
- IconId Icon
- Icon.
- String ShortcutText
- Shortcut shown next to the text.
- Function<void()> Execute
- What it does.
- Function<bool()> IsEnabled
- Returns whether it can be used now, always if not set.
- Function<bool()> IsChecked
- Returns whether it's shown checked.
- Function<void(SmallVectorImpl<MenuEntry>&)> Submenu
- Fills the submenu it opens instead of running Execute, when it's opened.