logo
pub trait Renderer: Renderer {
    fn dimensions(&self, handle: &Handle) -> (u32, u32);
    fn draw(&mut self, handle: Handle, bounds: Rectangle);
}
Expand description

A Renderer that can render vector graphics.

Required Methods

Returns the default dimensions of an SVG for the given Handle.

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

Implementors