Module cursive::menu [−][src]
Expand description
Build menu trees.
Menus are a way to arrange many actions in groups of more manageable size.
A menu can be seen as a Tree
. It has a list of children:
- Leaf nodes are made of a label and a callback
- Sub-trees are made of a label, and another
Tree
. - Delimiters are just there to separate groups of related children.
The menubar is the main way to show menus.
Structs
Tree | Root of a menu tree. |
Enums
Item | Node in the menu tree. |