Trait iced_native::widget::image::Renderer[][src]

pub trait Renderer: Renderer {
    fn dimensions(&self, handle: &Handle) -> (u32, u32);
fn draw(&mut self, handle: Handle, layout: Layout<'_>) -> Self::Output; }

The renderer of an Image.

Your renderer will need to implement this trait before being able to use an Image in your user interface.

Required methods

fn dimensions(&self, handle: &Handle) -> (u32, u32)[src]

Returns the dimensions of an Image located on the given path.

fn draw(&mut self, handle: Handle, layout: Layout<'_>) -> Self::Output[src]

Draws an Image.

Loading content...

Implementors

Loading content...