summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Cory Forsstrom <cforsstrom18@gmail.com>2020-04-23 15:34:55 -0700
committerLibravatar Cory Forsstrom <cforsstrom18@gmail.com>2020-05-26 16:56:34 -0700
commit0d8cefbf2d084053b92ded4785da8083486374ea (patch)
tree3c28573b56062a0a25ad13edf10464f08de1d9d0 /src
parent5324eb10242a7dd33f5271dc6fc9eeb09eb2cb50 (diff)
downloadiced-0d8cefbf2d084053b92ded4785da8083486374ea.tar.gz
iced-0d8cefbf2d084053b92ded4785da8083486374ea.tar.bz2
iced-0d8cefbf2d084053b92ded4785da8083486374ea.zip
Add `ImagePane` widget
Diffstat (limited to 'src')
-rw-r--r--src/widget.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/widget.rs b/src/widget.rs
index e33a6b2c..a1bc8f5b 100644
--- a/src/widget.rs
+++ b/src/widget.rs
@@ -33,6 +33,12 @@ mod platform {
pub use iced_winit::image::{Handle, Image};
}
+ #[cfg_attr(docsrs, doc(cfg(feature = "image")))]
+ pub mod image_pane {
+ //! Zoom and pan on an image.
+ pub use iced_wgpu::image_pane::{ImagePane, State};
+ }
+
#[cfg_attr(docsrs, doc(cfg(feature = "svg")))]
pub mod svg {
//! Display vector graphics in your user interface.
@@ -44,8 +50,8 @@ mod platform {
#[doc(no_inline)]
pub use {
button::Button, checkbox::Checkbox, container::Container, image::Image,
- pane_grid::PaneGrid, progress_bar::ProgressBar, radio::Radio,
- scrollable::Scrollable, slider::Slider, svg::Svg,
+ image_pane::ImagePane, pane_grid::PaneGrid, progress_bar::ProgressBar,
+ radio::Radio, scrollable::Scrollable, slider::Slider, svg::Svg,
text_input::TextInput,
};