Expand description
Menus are declared, never drawn by whoever fills them: a menu is an id
(app.main, panel.tab) to which the shell, a panel or a plugin
contributes items. An item names a command (its title and keys come
from the command and the keymap, so a menu never shows a key that does
not work), a submenu, or a list the application fills when the menu
opens (the themes, the recent files). Items sit in groups, separated
when shown, and in an order within their group; a when clause hides
or greys an item, a checked clause ticks it. A radio item
(MenuItem::radio) is one choice of a group: its checked clause
says whether it is the chosen one, shown with a dot instead of a tick.
Structs§
Enums§
Functions§
- show_
items - The items of one menu in a context: groups in order, separated, items
hidden or greyed by their
when. - sort_
items - Sorts items as menus show them: by group, then order.