morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::author::MenuItem Struct Reference

An item of a menu; items nests a submenu. More...

#include <author.hpp>

Public Attributes

AnyHandle label
 The label.
AnyHandle icon
 An icon.
std::string keys
 The shortcut shown beside it.
AnyHandle checked
 Whether a checkable item is checked.
AnyHandle enabled
 Whether it is enabled.
Commands onClick
 Commands run when it is chosen.
std::vector< MenuItem > items
 A submenu.

Detailed Description

An item of a menu; items nests a submenu.

Definition at line 3291 of file author.hpp.

Member Data Documentation

◆ label

AnyHandle morph::ui::author::MenuItem::label

The label.

Definition at line 3293 of file author.hpp.

◆ icon

AnyHandle morph::ui::author::MenuItem::icon

An icon.

Definition at line 3295 of file author.hpp.

◆ keys

std::string morph::ui::author::MenuItem::keys

The shortcut shown beside it.

Definition at line 3297 of file author.hpp.

◆ checked

AnyHandle morph::ui::author::MenuItem::checked

Whether a checkable item is checked.

Definition at line 3299 of file author.hpp.

◆ enabled

AnyHandle morph::ui::author::MenuItem::enabled

Whether it is enabled.

Definition at line 3301 of file author.hpp.

◆ onClick

Commands morph::ui::author::MenuItem::onClick

Commands run when it is chosen.

Definition at line 3303 of file author.hpp.

◆ items

std::vector<MenuItem> morph::ui::author::MenuItem::items

A submenu.

Definition at line 3305 of file author.hpp.


The documentation for this struct was generated from the following file: