Trait iced_native::svg::Renderer

source ·
pub trait Renderer: Renderer {
    fn dimensions(&self, handle: &Handle) -> Size<u32>;
    fn draw(&mut self, handle: Handle, color: Option<Color>, bounds: Rectangle);
}
Expand description

A Renderer that can render vector graphics.

Required Methods§

source

fn dimensions(&self, handle: &Handle) -> Size<u32>

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

source

fn draw(&mut self, handle: Handle, color: Option<Color>, bounds: Rectangle)

Draws an SVG with the given Handle, an optional Color filter, and inside the provided bounds.

Implementors§