diff options
author | 2020-04-23 15:34:55 -0700 | |
---|---|---|
committer | 2020-05-26 16:56:34 -0700 | |
commit | 0d8cefbf2d084053b92ded4785da8083486374ea (patch) | |
tree | 3c28573b56062a0a25ad13edf10464f08de1d9d0 /wgpu/src/widget | |
parent | 5324eb10242a7dd33f5271dc6fc9eeb09eb2cb50 (diff) | |
download | iced-0d8cefbf2d084053b92ded4785da8083486374ea.tar.gz iced-0d8cefbf2d084053b92ded4785da8083486374ea.tar.bz2 iced-0d8cefbf2d084053b92ded4785da8083486374ea.zip |
Add `ImagePane` widget
Diffstat (limited to 'wgpu/src/widget')
-rw-r--r-- | wgpu/src/widget/image_pane.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wgpu/src/widget/image_pane.rs b/wgpu/src/widget/image_pane.rs new file mode 100644 index 00000000..aa30a8cc --- /dev/null +++ b/wgpu/src/widget/image_pane.rs @@ -0,0 +1,6 @@ +//! 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>; |