Expand description
A representation of CSS layout properties in Rust, used for flexbox layout
Structs
- The flexbox layout information for a single
Node
.
Enums
- Sets the distribution of space between and around content items For Flexbox it controls alignment in the cross axis For Grid it controls alignment in the block axis
- Used to control how child
Nodes
are aligned. For Flexbox it controls alignment in the cross axis For Grid it controls alignment in the block axis - The amount of space available to a node in a given axis https://www.w3.org/TR/css-sizing-3/#available
- A unit of linear measurement
- Sets the layout used for the children of this node
- The direction of the flexbox layout main axis.
- Controls whether flex items are forced onto one line or can wrap onto multiple lines.
- Controls whether grid items are placed row-wise or column-wise. And whether the sparse or dense packing algorithm is used.
- The first argument to a repeated track definition. This type represents the type of automatic repetition to perform.
- A unit of linear measurement
- A unit of linear measurement
- Maximum track sizing function
- Minimum track sizing function
- The positioning strategy for this item.
- The sizing function for a grid track (row/column) See https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns
Type Aliases
- Used to control how the specified
Nodes
is aligned. Overrides the parent Node’sAlignItems
property. For Flexbox it controls alignment in the cross axis For Grid it controls alignment in the block axis - A grid line placement specification. Used for grid-[row/column]-[start/end]. Named tracks are not implemented.
- Sets the distribution of space between and around content items For Flexbox it controls alignment in the main axis For Grid it controls alignment in the inline axis
- Used to control how child
Nodes
are aligned. Does not apply to Flexbox, and will be ignored if specified on a flex container For Grid it controls alignment in the inline axis - Used to control how the specified
Nodes
is aligned. Overrides the parent Node’sJustifyItems
property. Does not apply to Flexbox, and will be ignored if specified on a flex child For Grid it controls alignment in the inline axis - The sizing function for a grid track (row/column) (either auto-track or template track) May either be a MinMax variant which specifies separate values for the min-/max- track sizing functions or a scalar value which applies to both track sizing functions.