Module style

Module style 

Source
Expand description

A typed representation of CSS style properties in Rust. Used as input to layout computation.

Structs§

Style
A typed representation of the CSS style information for a single node.

Enums§

AlignContent
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
AlignItems
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
AvailableSpace
The amount of space available to a node in a given axis https://www.w3.org/TR/css-sizing-3/#available
BoxGenerationMode
An abstracted version of the CSS display property where any value other than “none” is represented by “normal” See: https://www.w3.org/TR/css-display-3/#box-generation
BoxSizing
Specifies whether size styles for this node are assigned to the node’s “content box” or “border box”
Dimension
A unit of linear measurement
Display
Sets the layout used for the children of this node
FlexDirection
The direction of the flexbox layout main axis.
FlexWrap
Controls whether flex items are forced onto one line or can wrap onto multiple lines.
GridAutoFlow
Controls whether grid items are placed row-wise or column-wise. And whether the sparse or dense packing algorithm is used.
GridTrackRepetition
The first argument to a repeated track definition. This type represents the type of automatic repetition to perform.
LengthPercentage
A unit of linear measurement
LengthPercentageAuto
A unit of linear measurement
MaxTrackSizingFunction
Maximum track sizing function
MinTrackSizingFunction
Minimum track sizing function
Overflow
How children overflowing their container should affect layout
Position
The positioning strategy for this item.
TextAlign
Used by block layout to implement the legacy behaviour of <center> and <div align="left | right | center">
TrackSizingFunction
The sizing function for a grid track (row/column) See https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns

Traits§

BlockContainerStyle
The set of styles required for a Block layout container
BlockItemStyle
The set of styles required for a Block layout item (child of a Block container)
CoreStyle
The core set of styles that are shared between all CSS layout nodes
FlexboxContainerStyle
The set of styles required for a Flexbox container
FlexboxItemStyle
The set of styles required for a Flexbox item (child of a Flexbox container)
GridContainerStyle
The set of styles required for a CSS Grid container
GridItemStyle
The set of styles required for a CSS Grid item (child of a CSS Grid container)

Type Aliases§

AlignSelf
Controls alignment of an individual node
GridPlacement
A grid line placement specification. Used for grid-[row/column]-[start/end]. Named tracks are not implemented.
JustifyContent
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
JustifyItems
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
JustifySelf
Controls alignment of an individual node
NonRepeatedTrackSizingFunction
The sizing function for a grid track (row/column)