diff options
author | 2022-03-09 14:10:15 +0700 | |
---|---|---|
committer | 2022-03-09 14:10:15 +0700 | |
commit | 12c1a3f829c801022d45f1a294d8fc7fa10606e5 (patch) | |
tree | 05cc7a7981f13063831e7397129ea30a14a6d97a /graphics/src/widget/svg.rs | |
parent | 7d9ab71790ba0395681490f3af4d3899bb09ab09 (diff) | |
download | iced-12c1a3f829c801022d45f1a294d8fc7fa10606e5.tar.gz iced-12c1a3f829c801022d45f1a294d8fc7fa10606e5.tar.bz2 iced-12c1a3f829c801022d45f1a294d8fc7fa10606e5.zip |
Remove redundant `widget` modules in subcrates
Instead, we can define the type aliases just once in the root crate!
Diffstat (limited to 'graphics/src/widget/svg.rs')
-rw-r--r-- | graphics/src/widget/svg.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/graphics/src/widget/svg.rs b/graphics/src/widget/svg.rs deleted file mode 100644 index 5817a552..00000000 --- a/graphics/src/widget/svg.rs +++ /dev/null @@ -1,20 +0,0 @@ -//! Display vector graphics in your application. -use crate::backend::{self, Backend}; -use crate::{Primitive, Rectangle, Renderer}; -use iced_native::svg; - -pub use iced_native::widget::svg::Svg; -pub use svg::Handle; - -impl<B> svg::Renderer for Renderer<B> -where - B: Backend + backend::Svg, -{ - fn dimensions(&self, handle: &svg::Handle) -> (u32, u32) { - self.backend().viewport_dimensions(handle) - } - - fn draw(&mut self, handle: svg::Handle, bounds: Rectangle) { - self.draw_primitive(Primitive::Svg { handle, bounds }) - } -} |