Merged svg pipeline into image

This commit is contained in:
Malte Veerman 2019-12-12 01:14:54 +01:00
parent f737c6da24
commit 895eaef99b
8 changed files with 92 additions and 656 deletions

View file

@ -1,7 +1,6 @@
mod button;
mod checkbox;
mod column;
mod icon;
mod image;
mod radio;
mod row;

View file

@ -1,15 +0,0 @@
use crate::{svg::Handle, Primitive, Renderer};
use iced_native::{icon, MouseCursor, Rectangle};
use std::path::Path;
impl icon::Renderer for Renderer {
fn draw(&mut self, bounds: Rectangle, path: &Path) -> Self::Output {
(
Primitive::Svg {
handle: Handle::from_path(path),
bounds,
},
MouseCursor::OutOfBounds,
)
}
}