diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-22 00:52:42 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-22 00:52:42 +0100 |
| commit | c06d45002a56dc8fcb4281eab3b9a4038bd26800 (patch) | |
| tree | 9b726b3120a304dec4766811b8d005c594b7b274 /library/src/layout/align.rs | |
| parent | 990224c0f8bcf885d3bca58f3f1a87b54c180f52 (diff) | |
Document individual directions
Diffstat (limited to 'library/src/layout/align.rs')
| -rw-r--r-- | library/src/layout/align.rs | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/library/src/layout/align.rs b/library/src/layout/align.rs index 34478980..35b1026e 100644 --- a/library/src/layout/align.rs +++ b/library/src/layout/align.rs @@ -20,15 +20,24 @@ use crate::prelude::*; /// - alignment: Axes<Option<GenAlign>> (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 /// ``` |
