One item in the shared native/ImGui menu declaration. More...
#include "donner/editor/EditorMenuModel.h"
Public Types | |
| enum class | Kind { Command , Separator , Submenu } |
| Distinguishes an actionable command, visual separator, or nested menu. | |
Public Attributes | |
| Kind | kind = Kind::Command |
| How this menu node is presented and dispatched. | |
| std::string_view | label |
| Visible label; the referenced text must outlive the menu model. | |
| std::string_view | shortcut |
| Display-only shortcut label; dispatch is handled separately. | |
| MenuBarCommand | command = MenuBarCommand::OpenAbout |
| Command dispatched for a command node. | |
| std::span< const EditorMenuNode > | children |
| Child entries for a submenu; storage must outlive the menu model. | |
One item in the shared native/ImGui menu declaration.