diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-12-09 13:29:04 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-12-09 13:29:04 +0100 |
| commit | 7e980224354880cfda1797136a1ff886d6642662 (patch) | |
| tree | c0137dcca82526faa71fd1d980a90c68dac798c8 /src/library/keys.rs | |
| parent | 64f938b449b7ff5e53b6a06ed943bf9dedc1014b (diff) | |
Bad stack layouter 🚑
Diffstat (limited to 'src/library/keys.rs')
| -rw-r--r-- | src/library/keys.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/library/keys.rs b/src/library/keys.rs index e74027ec..c7e34839 100644 --- a/src/library/keys.rs +++ b/src/library/keys.rs @@ -66,7 +66,7 @@ kind!(AxisKey, "axis", "secondary" => AxisKey::Secondary, ); -/// An argument key which identifies a target alignment. +/// An argument key which describes a target alignment. #[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] pub enum AlignmentKey { Left, @@ -172,3 +172,10 @@ kind!(PaddingKey<AxisKey>, "axis or side", "vertical-origin" => PaddingKey::AxisAligned(AxisKey::Vertical, AlignmentKey::Origin), "vertical-end" => PaddingKey::AxisAligned(AxisKey::Vertical, AlignmentKey::End), ); + +kind!(Axis, "direction", + "ltr" => Axis::LeftToRight, + "rtl" => Axis::RightToLeft, + "ttb" => Axis::TopToBottom, + "btt" => Axis::BottomToTop, +); |
