Implement Image in iced_pure

This commit is contained in:
Héctor Ramón Jiménez 2022-02-13 16:51:31 +07:00
parent 09c96a6d81
commit 45455be450
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
4 changed files with 134 additions and 25 deletions

View file

@ -17,7 +17,7 @@
//! [the original widgets]: crate::widget
//! [`button::State`]: crate::widget::button::State
//! [impure `Application`]: crate::Application
pub use iced_pure::{Element as _, Text as _, *};
pub use iced_pure::{Element as _, Image as _, Text as _, *};
/// A generic, pure [`Widget`].
pub type Element<'a, Message> =
@ -26,6 +26,9 @@ pub type Element<'a, Message> =
/// A pure text widget.
pub type Text = iced_pure::Text<crate::Renderer>;
/// A pure image widget.
pub type Image = iced_pure::Image<crate::widget::image::Handle>;
mod application;
mod sandbox;