[][src]Trait tuifw_screen_base::Screen

pub trait Screen {
    type Error;
    fn size(&self) -> Vector;
fn out(
        &mut self,
        p: Point,
        fg: Color,
        bg: Option<Color>,
        attr: Attr,
        text: &str
    ) -> usize;
fn update(&mut self, cursor: Option<Point>) -> Result<Event, Self::Error>;
fn update_nodelay(
        &mut self,
        cursor: Option<Point>
    ) -> Result<Option<Event>, Self::Error>; }

Associated Types

type Error

Loading content...

Required methods

fn size(&self) -> Vector

fn out(
    &mut self,
    p: Point,
    fg: Color,
    bg: Option<Color>,
    attr: Attr,
    text: &str
) -> usize

fn update(&mut self, cursor: Option<Point>) -> Result<Event, Self::Error>

fn update_nodelay(
    &mut self,
    cursor: Option<Point>
) -> Result<Option<Event>, Self::Error>

Loading content...

Implementors

Loading content...