blob: 67bc3fe1f0f1048ff494b0bf910574a3d1c4585d (
plain) (
tree)
|
|
use crate::{Primitive, Renderer};
use iced_native::{svg, Layout, MouseCursor};
impl svg::Renderer for Renderer {
fn dimensions(&self, handle: &svg::Handle) -> (u32, u32) {
self.image_pipeline.viewport_dimensions(handle)
}
fn draw(
&mut self,
handle: svg::Handle,
layout: Layout<'_>,
) -> Self::Output {
(
Primitive::Svg {
handle,
bounds: layout.bounds(),
},
MouseCursor::OutOfBounds,
)
}
}
|