pub trait Renderer: Renderer {
    type ImageHandle: Hash;

    // Required methods
    fn dimensions(&self, handle: &Self::ImageHandle) -> (u32, u32);
    fn draw<M>(
        &mut self,
        defaults: &Self::Defaults,
        bounds: Rectangle,
        cursor_position: Point,
        viewport: &Rectangle,
        content: &Element<'_, M, Self>,
        content_layout: Layout<'_>,
    ) -> Self::Output;
}

Required Associated Types§

source

type ImageHandle: Hash

The handle used by this renderer for images.

Required Methods§

source

fn dimensions(&self, handle: &Self::ImageHandle) -> (u32, u32)

source

fn draw<M>( &mut self, defaults: &Self::Defaults, bounds: Rectangle, cursor_position: Point, viewport: &Rectangle, content: &Element<'_, M, Self>, content_layout: Layout<'_>, ) -> Self::Output

Object Safety§

This trait is not object safe.

Implementors§