Skip to main content

TuiApp

Trait TuiApp 

Source
pub trait TuiApp {
    type Exit;

    // Required methods
    fn draw(&mut self, frame: &mut Frame<'_>);
    fn handle_event(&mut self, event: Event) -> ControlFlow<Self::Exit>;
}
Expand description

An interactive terminal application.

Required Associated Types§

Source

type Exit

The reason the application exited.

Required Methods§

Source

fn draw(&mut self, frame: &mut Frame<'_>)

Draws one frame.

Source

fn handle_event(&mut self, event: Event) -> ControlFlow<Self::Exit>

Handles one terminal event.

Implementors§