diff options
Diffstat (limited to 'pure/src/widget.rs')
-rw-r--r-- | pure/src/widget.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pure/src/widget.rs b/pure/src/widget.rs index 7b5fc0bc..9112dd9a 100644 --- a/pure/src/widget.rs +++ b/pure/src/widget.rs @@ -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) +} |