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)
Send any key - can be used to simulate user input, and is typically generated by the TUI’s own input loop.
SetWindowSize(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)
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)
The way the GUI will respond to interrupt requests. See Interrupt
for more information.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more