diff options
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 |