summaryrefslogtreecommitdiffstats
path: root/wgpu/src/primitive.rs
diff options
context:
space:
mode:
authorLibravatar Malte Veerman <malte.veerman@gmail.com>2019-12-06 19:37:56 +0100
committerLibravatar Malte Veerman <malte.veerman@gmail.com>2019-12-11 21:34:40 +0100
commita88aae5e04e0a92457e5dd617a86af823e90af6c (patch)
tree2b3601cc15d041709a883c3b80685cf8e0baaa20 /wgpu/src/primitive.rs
parent80324284282f173e4d26e1f297daaf71a93f51a6 (diff)
downloadiced-a88aae5e04e0a92457e5dd617a86af823e90af6c.tar.gz
iced-a88aae5e04e0a92457e5dd617a86af823e90af6c.tar.bz2
iced-a88aae5e04e0a92457e5dd617a86af823e90af6c.zip
Added an `Icon` widget to native.
Diffstat (limited to 'wgpu/src/primitive.rs')
-rw-r--r--wgpu/src/primitive.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/wgpu/src/primitive.rs b/wgpu/src/primitive.rs
index c637626b..1b0729cf 100644
--- a/wgpu/src/primitive.rs
+++ b/wgpu/src/primitive.rs
@@ -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,
},