summaryrefslogtreecommitdiff
path: root/library/src/layout/stack.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-12-22 00:52:42 +0100
committerLaurenz <laurmaedje@gmail.com>2022-12-22 00:52:42 +0100
commitc06d45002a56dc8fcb4281eab3b9a4038bd26800 (patch)
tree9b726b3120a304dec4766811b8d005c594b7b274 /library/src/layout/stack.rs
parent990224c0f8bcf885d3bca58f3f1a87b54c180f52 (diff)
Document individual directions
Diffstat (limited to 'library/src/layout/stack.rs')
-rw-r--r--library/src/layout/stack.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/library/src/layout/stack.rs b/library/src/layout/stack.rs
index 3287df3a..0fd0f235 100644
--- a/library/src/layout/stack.rs
+++ b/library/src/layout/stack.rs
@@ -24,7 +24,12 @@ use crate::prelude::*;
/// The items to stack along an axis.
///
/// - dir: Dir (named)
-/// The direction along which the items are stacked.
+/// The direction along which the items are stacked. Possible values are:
+///
+/// - `{ltr}`: Left to right.
+/// - `{rtl}`: Right to left.
+/// - `{ttb}`: Top to bottom.
+/// - `{btt}`: Bottom to top.
///
/// - spacing: Spacing (named)
/// Spacing to insert between items where no explicit spacing was provided.