diff --git a/library/src/layout/align.rs b/library/src/layout/align.rs index 344789804..35b1026ee 100644 --- a/library/src/layout/align.rs +++ b/library/src/layout/align.rs @@ -20,15 +20,24 @@ use crate::prelude::*; /// - alignment: Axes> (positional, settable) /// The alignment along both axes. /// -/// Horizontal alignments can be `left`, `center`, `right`, `start`, or `end`. -/// The `start` and `end` alignments are relative to the current -/// [text direction](@text/dir). +/// Possible values for horizontal alignments are: +/// - `start` +/// - `end` +/// - `left` +/// - `center` +/// - `right` /// -/// Vertical alignments can be `top`, `horizon`, or `bottom`. +/// The `start` and `end` alignments are relative to the current [text +/// direction](@text/dir). +/// +/// Possible values for vertical alignments are: +/// - `top` +/// - `horizon` +/// - `bottom` /// /// To align along both axes at the same time, add the two alignments using -/// the `+` operator to get a 2d alignment. For example, `top + right` aligns -/// the content to the top right corner. +/// the `+` operator to get a `2d alignment`. For example, `top + right` +/// aligns the content to the top right corner. /// /// ### Example /// ``` diff --git a/library/src/layout/stack.rs b/library/src/layout/stack.rs index 3287df3a3..0fd0f2353 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.