struct mola::gui::MenuItem

Overview

A single menu item. Separator if label is empty.

#include <GuiWidgetDescription.h>

struct MenuItem
{
    // fields

    std::string label;
    std::string shortcut;
    bool enabled = true;
    std::function<void()> on_click;
};

Fields

std::string label

Empty string → separator line.

std::string shortcut

Display-only hint, e.g. “Ctrl+S”.