ImageDisplayer

Trait ImageDisplayer 

Source
pub trait ImageDisplayer {
    // Required methods
    fn draw(&mut self, image: &DisplayedImage, rect: Rect) -> Result<()>;
    fn clear(&mut self, image: &DisplayedImage) -> Result<()>;
    fn clear_all(&mut self) -> Result<()>;
}
Expand description

Methods used to display images :

  • draw asks the adapter to do the drawing,
  • clear erases an image from its path,
  • clear_all erases all drawed images.

Required Methods§

Source

fn draw(&mut self, image: &DisplayedImage, rect: Rect) -> Result<()>

Source

fn clear(&mut self, image: &DisplayedImage) -> Result<()>

Source

fn clear_all(&mut self) -> Result<()>

Implementors§