enum MenuItemKind
Control plane
enum MenuItemKind : u32
What one row is.
Deliberately three kinds and not a general widget vocabulary. A context menu that can express more than this stops being a context menu — it becomes a small application with a layout problem, and the desktop already has somewhere to put those.
idl/lava.npidl:592
Cases
checkbox = 1
Does something and closes the menu, and shows checked beside itself.
A state, not a preference: the compositor fills it from the window it
is describing at the moment the menu opens.
idl/lava.npidl
command = 0
Does something and closes the menu.
idl/lava.npidl