Module prototty_elements::menu [] [src]

Graphical menus

Structs

Menu

A list of MenuEntrys, in the order they appear when rendered, with a description of how the text of the selected and normal (ie. not selected) entries should be rendered.

MenuEntry

A single entry in a menu. It owns the value which will be yielded if this entry is finalised.

MenuInstance

An instance of a menu, with a selected entry. A MenuInstance can be run using a MenuRunner, and a selection finalised. When a MenuInstance is rendered, the currently-selected entry is rendered using the Menu's selected_info.

Enums

MenuChoice

The choice made by a user when running a menu.

Traits

MenuRunner

Running a menu is the process of displaying the menu with a visible selection, and capturing input to change the selection. It's possbile for a user to submit their selection (usually by pressing a key), to cancel the menu (usually by pressing a different key), or to quit the menu (usually by senting ETX).