Implement Image in iced_pure
This commit is contained in:
parent
09c96a6d81
commit
45455be450
4 changed files with 134 additions and 25 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue