LavaUI docs

message MenuItem

Control plane

Fields

checked: boolean

Only read for checkbox.

idl/lava.npidl:614

enabled: boolean

A greyed row that is still shown, which is the point: "Maximize" missing from a fullscreen window's menu moves every row below it, and a menu whose geometry changes with the window is a menu nobody builds muscle memory for.

idl/lava.npidl:619

id: u32

What the client echoes back in MenuReply.chosen when this row is picked. Opaque to it, and meaningful only to the compositor that sent it. Never 0 for a row that can be chosen — 0 is how a reply says "dismissed", so an item with that id would be indistinguishable from the user pressing Escape.

idl/lava.npidl:610

kind: MenuItemKind

Not documented.

idl/lava.npidl:612

shortcut: string

Right-aligned accelerator label — "Alt+F4". Cosmetic: the compositor already has these bindings and the menu never matches on this string. Empty for a row with no chord.

idl/lava.npidl:623

title: string

Not documented.

idl/lava.npidl:611