Skip to main content

Module modal

Module modal 

Source
Expand description

Modal dialog trait + a stack that routes input to the topmost dialog. T10 defines the abstraction; T11+ wire actual dialogs (root menu, serial port setup, …) on top of it.

Structs§

ModalStack
Stack of Dialogs. The topmost dialog receives keys first; DialogOutcome::Close pops it.

Enums§

DialogAction
User-level actions emitted by dialogs. The TuiApp orchestrator consumes these and calls into rtcom-core / rtcom-config to apply them.
DialogOutcome
What a Dialog wants the surrounding ModalStack to do after it has processed an input event.

Traits§

Dialog
A full-screen or modal dialog rendered over the main TUI chrome.

Functions§

centred_rect
Centre a width x height rectangle inside outer, clipping if the outer is smaller than the requested size.