pub trait TUIInterface {
    const LEFT_TITLE: &'static str;
    const RIGHT_TITLE: &'static str;

    fn on_redraw(&mut self, line_number: u16, column_number: u16) -> TUIOutput<'_>;
    fn bound_line(&self, line_number: u16) -> u16;
    fn bound_column(&self, line_number: u16, column_number: u16) -> u16;
}

Required Associated Constants

The title to be used for the left screen

The title to be used for the right screen

Required Methods

Function called on each redraw. The TUIOutput contains that updated data to display on each pane.

Bounds the line number so that it does not run past the text.

Bounds the column number (w.r.t. the current line_number) so that the cursor does not overrun the line.

Implementors