Added an Icon widget to native.

This commit is contained in:
Malte Veerman 2019-12-06 19:37:56 +01:00
parent 8032428428
commit a88aae5e04
7 changed files with 138 additions and 6 deletions

View file

@ -3,8 +3,6 @@ use iced_native::{
VerticalAlignment,
};
use crate::svg;
/// A rendering primitive.
#[derive(Debug, Clone)]
pub enum Primitive {
@ -50,8 +48,8 @@ pub enum Primitive {
},
/// A svg icon primitive
Svg {
/// The handle of the icon
handle: svg::Handle,
/// The path of the icon
handle: crate::svg::Handle,
/// The bounds of the icon
bounds: Rectangle,
},