Render

Trait Render 

Source
pub trait Render {
    // Required methods
    fn should_render(&self) -> bool;
    fn invalidate(&mut self);
    fn render(
        &mut self,
        stdout: &mut Stdout,
        bounding_box: BoundingBox,
    ) -> Result<()>;
    fn get_cursor(&self) -> (u16, u16);
}

Required Methods§

Source

fn should_render(&self) -> bool

Source

fn invalidate(&mut self)

Source

fn render( &mut self, stdout: &mut Stdout, bounding_box: BoundingBox, ) -> Result<()>

NB: [render] takes [&mut self] since there isn’t a separate notification to component that their bbox changed.

Source

fn get_cursor(&self) -> (u16, u16)

Implementors§