Expand description
Layout style of UI nodes, following the CSS box model. Converted to taffy’s style when laid out.
Structs§
- Align
Content - 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.
- Align
Items - 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.
- UiRect
- A length for each side of a node.
- UiStyle
- Layout style of a
UiNode. See the CSS properties of the same names.
Enums§
- Flex
Direction - The direction of the flexbox layout main axis.
- Flex
Wrap - Controls whether flex items are forced onto one line or can wrap onto multiple lines.
- UiDisplay
- Sets the layout used for the children of this node
- UiPosition
- How a node is positioned. There is no CSS
static: every node is the containing block of its absolute children, which keeps layout positions relative to the parent entity. - Val
- A length.
Type Aliases§
- Align
Self - Controls alignment of an individual node.
- Justify
Content - 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.