summaryrefslogtreecommitdiffstats
path: root/widget/src/helpers.rs
diff options
context:
space:
mode:
authorLibravatar Rizzen Yazston <rizzen.yazston@gmail.com>2024-02-19 09:55:04 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-02-19 09:44:22 +0100
commita2e034cea66672a13bdfe6057c89e3ef4c58f164 (patch)
treea41ef82bc83e967c3248d93b3fee411891fe81ee /widget/src/helpers.rs
parente77a6add8ae7dcded0bdecc72f3cdf455f30e79f (diff)
downloadiced-a2e034cea66672a13bdfe6057c89e3ef4c58f164.tar.gz
iced-a2e034cea66672a13bdfe6057c89e3ef4c58f164.tar.bz2
iced-a2e034cea66672a13bdfe6057c89e3ef4c58f164.zip
Fix `horizontal_space` and `vertical_space` docs
Diffstat (limited to 'widget/src/helpers.rs')
-rw-r--r--widget/src/helpers.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/widget/src/helpers.rs b/widget/src/helpers.rs
index 3f2e56cd..71b0579d 100644
--- a/widget/src/helpers.rs
+++ b/widget/src/helpers.rs
@@ -302,16 +302,18 @@ where
ComboBox::new(state, placeholder, selection, on_selected)
}
-/// Creates a new horizontal [`Space`] with the given [`Length`].
+/// Creates a new [`Space`] widget that fills the available
+/// horizontal space.
///
-/// [`Space`]: crate::Space
+/// This can be useful to separate widgets in a [`Row`].
pub fn horizontal_space() -> Space {
Space::with_width(Length::Fill)
}
-/// Creates a new vertical [`Space`] with the given [`Length`].
+/// Creates a new [`Space`] widget that fills the available
+/// vertical space.
///
-/// [`Space`]: crate::Space
+/// This can be useful to separate widgets in a [`Column`].
pub fn vertical_space() -> Space {
Space::with_height(Length::Fill)
}