Merged svg pipeline into image
This commit is contained in:
parent
f737c6da24
commit
895eaef99b
8 changed files with 92 additions and 656 deletions
|
|
@ -1,7 +1,6 @@
|
|||
mod button;
|
||||
mod checkbox;
|
||||
mod column;
|
||||
mod icon;
|
||||
mod image;
|
||||
mod radio;
|
||||
mod row;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue