diff options
author | 2019-12-04 04:28:07 +0100 | |
---|---|---|
committer | 2019-12-04 04:28:07 +0100 | |
commit | d1eb187e2673150b6c3f9fed0c15a1804ce0d75b (patch) | |
tree | 18ba66323f0aa2f3b8c25b80d1d74acfa41c13a2 /wgpu/src/primitive.rs | |
parent | 6c145bbb239e87569bf4aa797ea7f8d34e25cf62 (diff) | |
parent | 2144109dd7f9ab811393d3d725ba1cb7371aa672 (diff) | |
download | iced-d1eb187e2673150b6c3f9fed0c15a1804ce0d75b.tar.gz iced-d1eb187e2673150b6c3f9fed0c15a1804ce0d75b.tar.bz2 iced-d1eb187e2673150b6c3f9fed0c15a1804ce0d75b.zip |
Merge pull request #90 from hecrj/feature/image-from-bytes
Load images from memory and image viewer example
Diffstat (limited to 'wgpu/src/primitive.rs')
-rw-r--r-- | wgpu/src/primitive.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wgpu/src/primitive.rs b/wgpu/src/primitive.rs index 9efd74f6..04264e5d 100644 --- a/wgpu/src/primitive.rs +++ b/wgpu/src/primitive.rs @@ -1,5 +1,5 @@ use iced_native::{ - Background, Color, Font, HorizontalAlignment, Rectangle, Vector, + image, Background, Color, Font, HorizontalAlignment, Rectangle, Vector, VerticalAlignment, }; @@ -41,8 +41,8 @@ pub enum Primitive { }, /// An image primitive Image { - /// The path of the image - path: String, + /// The handle of the image + handle: image::Handle, /// The bounds of the image bounds: Rectangle, }, |