Module menu

Module menu 

Source
Expand description

On-screen menu policy shared by every display tracker.

The model is a flat, wrapping list of MenuItems with a confirmation page in front of the destructive ones. Each board enables the subset it can actually perform via MenuItems; navigation skips whatever is not enabled, so the same code drives a two-item Heltec menu and a four-item T-Echo menu without either firmware knowing the other exists.

MenuItem::Status is the home item and is always enabled: it is where boot starts, where an activated item returns to, and where the display-attention lapse sends the user back to (see crate::attention).

Structs§

MenuItems
The set of menu items a board enables.
UiModel
The menu state machine.

Enums§

MenuItem
An entry in the menu.
Page
The screen currently being shown.
UiEffect
Something the firmware should do as a result of a selection.
UiInput
One resolved navigation gesture.
UiNotice
A transient result message shown on the status page.