[][src]Trait coffee::ui::widget::image::Renderer

pub trait Renderer {
    fn draw(
        &mut self,
        bounds: Rectangle<f32>,
        image: Image,
        source: Rectangle<u16>
    ); }

The renderer of a Image.

Your core::Renderer will need to implement this trait before being able to use a Image in your user interface.

Required methods

fn draw(&mut self, bounds: Rectangle<f32>, image: Image, source: Rectangle<u16>)

Draws a Image.

It receives:

  • the bounds of the Image
  • the handle of the loaded Image
  • the portion of the image that we wants to draw
Loading content...

Implementors

impl Renderer for Renderer[src]

Loading content...