pub trait Renderer: Renderer {
type Handle: Clone + Hash;
// Required methods
fn dimensions(&self, handle: &Self::Handle) -> Size<u32>;
fn draw(
&mut self,
handle: Self::Handle,
filter_method: FilterMethod,
bounds: Rectangle,
border_radius: [f32; 4],
);
}
Expand description
A Renderer
that can render raster graphics.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.