Skip to content

Commit

Permalink
layout: Tyding up the flex alorithm code.
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepy-monax committed Oct 14, 2024
1 parent 9c1816b commit 3fe6f92
Show file tree
Hide file tree
Showing 2 changed files with 621 additions and 379 deletions.
5 changes: 5 additions & 0 deletions src/vaev-base/flex.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ struct Flex {
FlexBasis basis = Width{Width::AUTO};
Number grow = 0;
Number shrink = 1;

bool isRowOriented() const {
return direction == FlexDirection::ROW or
direction == FlexDirection::ROW_REVERSE;
}
};

} // namespace Vaev
Loading

0 comments on commit 3fe6f92

Please sign in to comment.