Module layout_2013::flex

source Β·
Expand description

Layout for elements with a CSS display property of flex.

Structs§

  • A block with the CSS display property equal to flex.
  • FlexItem πŸ”’
    Represents a child in a flex container. Most fields here are used in flex size resolving, and items are sorted by the β€˜order’ property.
  • FlexLine πŸ”’
    A line in a flex container.

Enums§

  • AxisSize πŸ”’
    The size of an axis. May be a specified size, a min/max constraint, or an unlimited size

Functions§

  • from_flex_basis πŸ”’
    This function accepts the flex-basis and the size property in main direction from style, and the container size, then return the used value of flex basis. it can be used to help determining the flex base size and to indicate whether the main size of the item is definite after flex size resolving.