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
fn draw_into<R: RawPaintable>(&self, target: &mut R, pos: (u32, u32))
Draw this widget into the target. Same as mark_all_changed followed by draw_delta_into.
Provided Methods
fn draw_delta_into<R: RawPaintable>(&mut self, target: &mut R, pos: (u32, u32))
Draw only what has changed since last time into the target. This clears the delta info for next time.
fn mark_all_changed(&mut self)
Mark everything changed. Next draw_delta_into will redraw everything.
fn mark_none_changed(&mut self)
Mark nothing changed. Next draw_delta_into will do nothing.
Implementors
impl PaintableWidget for StyledText
impl PaintableWidget for TermRect
impl<T: HasTermRect> PaintableWidget for T