summaryrefslogtreecommitdiffstats
path: root/wgpu/src/widget/image_viewer.rs
diff options
context:
space:
mode:
authorLibravatar Cory Forsstrom <cforsstrom18@gmail.com>2020-05-15 09:46:22 -0700
committerLibravatar Cory Forsstrom <cforsstrom18@gmail.com>2020-05-26 16:56:34 -0700
commit431171f975642fe96286f11fb75cd5b06827cc7f (patch)
treed7b49ae0bc76e2197dbae9feafd6a2a888c9a727 /wgpu/src/widget/image_viewer.rs
parent6bf459e068043847a0ee1e1219056d3aced3f1cb (diff)
downloadiced-431171f975642fe96286f11fb75cd5b06827cc7f.tar.gz
iced-431171f975642fe96286f11fb75cd5b06827cc7f.tar.bz2
iced-431171f975642fe96286f11fb75cd5b06827cc7f.zip
Rename and add to iced image module
Diffstat (limited to 'wgpu/src/widget/image_viewer.rs')
-rw-r--r--wgpu/src/widget/image_viewer.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/wgpu/src/widget/image_viewer.rs b/wgpu/src/widget/image_viewer.rs
new file mode 100644
index 00000000..ec44e30a
--- /dev/null
+++ b/wgpu/src/widget/image_viewer.rs
@@ -0,0 +1,6 @@
+//! Zoom and pan on an image.
+
+pub use iced_native::image_viewer::State;
+
+/// A widget that can display an image with the ability to zoom in/out and pan.
+pub type ImageViewer<'a> = iced_native::ImageViewer<'a>;