pub trait Renderer: Renderer {
    type Handle: Clone + Hash;

    fn dimensions(&self, handle: &Self::Handle) -> Size<u32>;
    fn draw(&mut self, handle: Self::Handle, bounds: Rectangle);
Expand description

A Renderer that can render raster graphics.

Required Associated Types§

The image Handle to be displayed. Iced exposes its own default implementation of a Handle

Required Methods§

Returns the dimensions of an image for the given Handle.

Draws an image with the given Handle and inside the provided bounds.