Trait termrect::termrect::PaintableWidget[][src]

pub trait PaintableWidget: HasSize {
    fn draw_into<R: RawPaintable>(&self, target: &mut R, pos: (u32, u32));

    fn draw_delta_into<R: RawPaintable>(
        &mut self,
        target: &mut R,
        pos: (u32, u32)
    ) { ... }
fn mark_all_changed(&mut self) { ... }
fn mark_none_changed(&mut self) { ... } }

Required Methods

Draw this widget into the target. Same as mark_all_changed followed by draw_delta_into.

Provided Methods

Draw only what has changed since last time into the target. This clears the delta info for next time.

Mark everything changed. Next draw_delta_into will redraw everything.

Mark nothing changed. Next draw_delta_into will do nothing.

Implementors