diff options
author | 2019-12-16 21:38:33 +0100 | |
---|---|---|
committer | 2019-12-16 21:38:33 +0100 | |
commit | 3702b109977a249247a0f1be40e57bec2cbaa4e3 (patch) | |
tree | 9919f2ee30ab29c83a2455f838313ab5bfb2f146 /wgpu/src/primitive.rs | |
parent | c1b9f6652517dcbf5ffd83b5db4a624f9a5b0da4 (diff) | |
parent | 514ccf8a72d660d77f26e085b545e5104389c138 (diff) | |
download | iced-3702b109977a249247a0f1be40e57bec2cbaa4e3.tar.gz iced-3702b109977a249247a0f1be40e57bec2cbaa4e3.tar.bz2 iced-3702b109977a249247a0f1be40e57bec2cbaa4e3.zip |
Merge pull request #111 from Maldela/svg
Svg and icon support
Diffstat (limited to 'wgpu/src/primitive.rs')
-rw-r--r-- | wgpu/src/primitive.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/wgpu/src/primitive.rs b/wgpu/src/primitive.rs index 04264e5d..958cc17f 100644 --- a/wgpu/src/primitive.rs +++ b/wgpu/src/primitive.rs @@ -1,6 +1,6 @@ use iced_native::{ - image, Background, Color, Font, HorizontalAlignment, Rectangle, Vector, - VerticalAlignment, + image, svg, Background, Color, Font, HorizontalAlignment, Rectangle, + Vector, VerticalAlignment, }; /// A rendering primitive. @@ -46,6 +46,14 @@ pub enum Primitive { /// The bounds of the image bounds: Rectangle, }, + /// An SVG primitive + Svg { + /// The path of the SVG file + handle: svg::Handle, + + /// The bounds of the viewport + bounds: Rectangle, + }, /// A clip primitive Clip { /// The bounds of the clip |