diff options
author | 2019-12-06 16:47:40 +0100 | |
---|---|---|
committer | 2019-12-11 20:02:43 +0100 | |
commit | 80324284282f173e4d26e1f297daaf71a93f51a6 (patch) | |
tree | afaf4816e7a9ae4f57616afc2386ff8695f3b3c4 /wgpu/src/primitive.rs | |
parent | c1b9f6652517dcbf5ffd83b5db4a624f9a5b0da4 (diff) | |
download | iced-80324284282f173e4d26e1f297daaf71a93f51a6.tar.gz iced-80324284282f173e4d26e1f297daaf71a93f51a6.tar.bz2 iced-80324284282f173e4d26e1f297daaf71a93f51a6.zip |
Implemented SVG support in iced_wgpu.
Diffstat (limited to 'wgpu/src/primitive.rs')
-rw-r--r-- | wgpu/src/primitive.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wgpu/src/primitive.rs b/wgpu/src/primitive.rs index 04264e5d..c637626b 100644 --- a/wgpu/src/primitive.rs +++ b/wgpu/src/primitive.rs @@ -3,6 +3,8 @@ use iced_native::{ VerticalAlignment, }; +use crate::svg; + /// A rendering primitive. #[derive(Debug, Clone)] pub enum Primitive { @@ -46,6 +48,13 @@ pub enum Primitive { /// The bounds of the image bounds: Rectangle, }, + /// A svg icon primitive + Svg { + /// The handle of the icon + handle: svg::Handle, + /// The bounds of the icon + bounds: Rectangle, + }, /// A clip primitive Clip { /// The bounds of the clip |