Skip to main content

Module style

Module style 

Source
Expand description

Layout style of UI nodes, following the CSS box model. Converted to taffy’s style when laid out.

Structs§

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.
UiRect
A length for each side of a node.
UiStyle
Layout style of a UiNode. See the CSS properties of the same names.

Enums§

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.
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§

AlignSelf
Controls alignment of an individual node.
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.