Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::EditorMenuNode Struct Reference

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.

Detailed Description

One item in the shared native/ImGui menu declaration.


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