diff options
Diffstat (limited to 'graphics/src/widget/svg.rs')
-rw-r--r-- | graphics/src/widget/svg.rs | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/graphics/src/widget/svg.rs b/graphics/src/widget/svg.rs index 8b5ed66a..b74a0abb 100644 --- a/graphics/src/widget/svg.rs +++ b/graphics/src/widget/svg.rs @@ -1,7 +1,7 @@ //! Display vector graphics in your application. use crate::backend::{self, Backend}; -use crate::{Primitive, Renderer}; -use iced_native::{mouse, svg, Layout}; +use crate::Renderer; +use iced_native::svg; pub use iced_native::svg::{Handle, Svg}; @@ -12,18 +12,4 @@ where fn dimensions(&self, handle: &svg::Handle) -> (u32, u32) { self.backend().viewport_dimensions(handle) } - - fn draw( - &mut self, - handle: svg::Handle, - layout: Layout<'_>, - ) -> Self::Output { - ( - Primitive::Svg { - handle, - bounds: layout.bounds(), - }, - mouse::Interaction::default(), - ) - } } |