pub fn layout_flexbox(
    rect: Rect,
    should_wrap: bool,
    minimum: bool,
    expand: bool,
    row_gap: usize,
    column_gap: usize,
    orientation: Orientation,
    items: &[impl FlexLayout]
) -> Vec<Rect>
Expand description

Positions items in a flexbox layout.

Parameters

  • rect: the space the flexbox has available
  • should_wrap: should the flexbox wrap if not enough space
  • minimum: don’t bother with naturual sizing
  • expand: should the flexbox take up the max space?
  • row_gap: what is the gap between rows?
  • column_gap: what is the gap between columns?
  • orientation: is this horizontal or vertical
  • items: the FlexLayout to align.
  • expand_in_row: should items within a row be expanded?