summaryrefslogtreecommitdiffstats
path: root/pure/src/widget.rs
diff options
context:
space:
mode:
Diffstat (limited to 'pure/src/widget.rs')
-rw-r--r--pure/src/widget.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/pure/src/widget.rs b/pure/src/widget.rs
index 302a057a..93298c61 100644
--- a/pure/src/widget.rs
+++ b/pure/src/widget.rs
@@ -1,3 +1,5 @@
+pub mod image;
+
mod button;
mod checkbox;
mod column;
@@ -14,6 +16,7 @@ pub use checkbox::Checkbox;
pub use column::Column;
pub use container::Container;
pub use element::Element;
+pub use image::Image;
pub use row::Row;
pub use scrollable::Scrollable;
pub use text::Text;
@@ -145,3 +148,7 @@ where
{
TextInput::new(placeholder, value, on_change)
}
+
+pub fn image<Handle>(handle: Handle) -> Image<Handle> {
+ Image::new(handle)
+}