Skip to main content

Module menu

Module menu 

Source
Expand description

Native application menu: standard App / Edit / View / Window / Help structure, no browser verbs (no Reload, no zoom, no Back), plus app-defined groups.

Donors: ViewRight’s macOS menu (Hide, Hide Others, Quit, Edit, Window), CodeRight’s build_application_menu (typed ids forwarded to the renderer exactly once) and HeardRight’s menu/tray gating. Custom items carry stable string ids; a click is delivered as the rightkit-shell://menu event and to an optional Rust callback.

Structs§

BuiltMenu
MenuGroup
MenuSpec

Enums§

MenuEntry

Constants§

ID_QUIT
Id of the app-menu quit item (macOS “Quit ”, Windows/Linux File > “Exit ”). A click is handled by the shell as lifecycle::request_quit and is not emitted as a menu event.

Functions§

build
describe
Flatten a menu to {path -> label} style rows for diagnostics and tests.