Use Explicit Names for Flex Direction (#2672)

# Objective

- Clarify vague meaning of "Ltr" and "Rtl". For someone familiar with Flex Box, this is easy to understand, but being more explicit will help beginners or those unfamiliar, without the need to do research.

## Solution

- Change three letter abbreviation to fully descriptive name.
This commit is contained in:
Mirko Rainer 2021-08-24 01:50:21 +00:00
parent 481fa3c7a0
commit 958f8b124a
2 changed files with 4 additions and 4 deletions

View file

@ -114,8 +114,8 @@ impl From<Direction> for stretch::style::Direction {
fn from(value: Direction) -> Self {
match value {
Direction::Inherit => stretch::style::Direction::Inherit,
Direction::Ltr => stretch::style::Direction::LTR,
Direction::Rtl => stretch::style::Direction::RTL,
Direction::LeftToRight => stretch::style::Direction::LTR,
Direction::RightToLeft => stretch::style::Direction::RTL,
}
}
}

View file

@ -155,8 +155,8 @@ impl Default for AlignContent {
#[reflect_value(PartialEq, Serialize, Deserialize)]
pub enum Direction {
Inherit,
Ltr,
Rtl,
LeftToRight,
RightToLeft,
}
impl Default for Direction {