enum MenuItemKind
Control plane
enum MenuItemKind : u32
What one row is.
Four kinds and not a general widget vocabulary. A context menu that can
express checkboxes, text fields and icons stops being a context menu — it
becomes a small application with a layout problem, and the desktop already
has somewhere to put those. submenu is the one addition, and it is a
branch, not a widget: the rows under it are the same three kinds again.
idl/lava.npidl:724
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