From c06d45002a56dc8fcb4281eab3b9a4038bd26800 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 22 Dec 2022 00:52:42 +0100 Subject: Document individual directions --- library/src/layout/stack.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'library/src/layout/stack.rs') 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. -- cgit v1.2.3