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§

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

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

Implementors§