Implement Space in iced_pure

This commit is contained in:
Héctor Ramón Jiménez 2022-02-13 22:18:21 +07:00
parent 53f3820432
commit 6689ede6d8
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 133 additions and 0 deletions

View file

@ -9,6 +9,7 @@ mod radio;
mod row;
mod scrollable;
mod slider;
mod space;
mod text;
mod text_input;
mod toggler;
@ -24,6 +25,7 @@ pub use radio::Radio;
pub use row::Row;
pub use scrollable::Scrollable;
pub use slider::Slider;
pub use space::Space;
pub use text::Text;
pub use text_input::TextInput;
pub use toggler::Toggler;
@ -195,3 +197,11 @@ where
pub fn image<Handle>(handle: impl Into<Handle>) -> Image<Handle> {
Image::new(handle.into())
}
pub fn horizontal_space(width: Length) -> Space {
Space::with_width(width)
}
pub fn vertical_space(height: Length) -> Space {
Space::with_height(height)
}