Jazz2::UI::Windows::MenuEntry struct

Item of a menu.

Public static functions

static auto Separator() -> MenuEntry
Makes a separator.

Public functions

auto IsSeparator() const -> bool
Returns true if 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.