From 431171f975642fe96286f11fb75cd5b06827cc7f Mon Sep 17 00:00:00 2001 From: Cory Forsstrom Date: Fri, 15 May 2020 09:46:22 -0700 Subject: Rename and add to iced image module --- wgpu/src/widget/image_viewer.rs | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 wgpu/src/widget/image_viewer.rs (limited to 'wgpu/src/widget/image_viewer.rs') 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>; -- cgit