Add ImagePane widget

This commit is contained in:
Cory Forsstrom 2020-04-23 15:34:55 -07:00
parent 5324eb1024
commit 0d8cefbf2d
No known key found for this signature in database
GPG key ID: 64D6B5851FFCAC9E
7 changed files with 470 additions and 2 deletions

View file

@ -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,
};