Expand description
A typed representation of CSS style properties in Rust. Used as input to layout computation.
Structs§
- A typed representation of the CSS style 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
- How children overflowing their container should affect layout
- 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’s
AlignItems
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’s
JustifyItems
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.