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_pane.rs | 6 ------ wgpu/src/widget/image_viewer.rs | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 wgpu/src/widget/image_pane.rs create mode 100644 wgpu/src/widget/image_viewer.rs (limited to 'wgpu/src/widget') diff --git a/wgpu/src/widget/image_pane.rs b/wgpu/src/widget/image_pane.rs deleted file mode 100644 index aa30a8cc..00000000 --- a/wgpu/src/widget/image_pane.rs +++ /dev/null @@ -1,6 +0,0 @@ -//! Zoom and pan on an image. - -pub use iced_native::image_pane::State; - -/// A widget that can display an image with the ability to zoom in/out and pan. -pub type ImagePane<'a> = iced_native::ImagePane<'a>; 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