Rename and add to iced image module

This commit is contained in:
Cory Forsstrom 2020-05-15 09:46:22 -07:00
parent 6bf459e068
commit 431171f975
No known key found for this signature in database
GPG key ID: 64D6B5851FFCAC9E
7 changed files with 58 additions and 56 deletions

View file

@ -31,12 +31,7 @@ mod platform {
pub mod image {
//! Display images in your user interface.
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};
pub use iced_winit::image_viewer::{ImageViewer, State};
}
#[cfg_attr(docsrs, doc(cfg(feature = "svg")))]
@ -49,9 +44,16 @@ mod platform {
#[doc(no_inline)]
pub use {
button::Button, checkbox::Checkbox, container::Container, image::Image,
image_pane::ImagePane, pane_grid::PaneGrid, progress_bar::ProgressBar,
radio::Radio, scrollable::Scrollable, slider::Slider, svg::Svg,
button::Button,
checkbox::Checkbox,
container::Container,
image::{Image, ImageViewer},
pane_grid::PaneGrid,
progress_bar::ProgressBar,
radio::Radio,
scrollable::Scrollable,
slider::Slider,
svg::Svg,
text_input::TextInput,
};