Enum prodash::render::tui::Event [−][src]
pub enum Event {
Tick,
Input(Key),
SetWindowSize(Rect),
SetTitle(String),
SetInformation(Vec<Line>),
SetInterruptMode(Interrupt),
}
Expand description
An event to be sent in the tui::render_with_input(…events)
stream.
This way, the TUI can be instructed to draw frames or change the information to be displayed.
Variants
Tick
Draw a frame
Input(Key)
Tuple Fields
0: Key
Send any key - can be used to simulate user input, and is typically generated by the TUI’s own input loop.
SetWindowSize(Rect)
Tuple Fields
0: Rect
Change the size of the window to the given rectangle.
Useful to embed the TUI into other terminal user interfaces that can resize dynamically.
SetTitle(String)
Tuple Fields
0: String
Set the title of the progress dashboard
SetInformation(Vec<Line>)
Provide a list of titles and lines to populate the side bar on the right.
SetInterruptMode(Interrupt)
Tuple Fields
0: Interrupt
The way the GUI will respond to interrupt requests. See Interrupt
for more information.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Event
impl UnwindSafe for Event
Blanket Implementations
Mutably borrows from an owned value. Read more