pub trait Screen {
    // Required methods
    fn size(&self) -> Vector;
    fn out(
        &mut self,
        p: Point,
        fg: Fg,
        bg: Bg,
        text: &str,
        hard: Range<i16>,
        soft: Range<i16>
    ) -> Range<i16>;
    fn update(
        &mut self,
        cursor: Option<Point>,
        wait: bool
    ) -> Result<Option<Event>, Error>;
    fn line_invalidated_range(&self, line: i16) -> &Range<i16>;
    fn line_invalidated_range_mut(&mut self, line: i16) -> &mut Range<i16>;
}

Required Methods§

source

fn size(&self) -> Vector

source

fn out( &mut self, p: Point, fg: Fg, bg: Bg, text: &str, hard: Range<i16>, soft: Range<i16> ) -> Range<i16>

source

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

source

fn line_invalidated_range(&self, line: i16) -> &Range<i16>

source

fn line_invalidated_range_mut(&mut self, line: i16) -> &mut Range<i16>

Implementors§