Skip to main content

Module flex

Module flex 

Source
Expand description

CSS properties for flexbox layout.

Structs§

LayoutFlexGrow
Represents a flex-grow attribute, which dictates what proportion of the remaining space in the flex container should be assigned to the item. Default: 0
LayoutFlexShrink
Represents a flex-shrink attribute, which dictates what proportion of the negative space in the flex container should be removed from the item. Default: 1

Enums§

AlignContentParseError
AlignContentParseErrorOwned
AlignItemsParseError
AlignItemsParseErrorOwned
AlignSelfParseError
AlignSelfParseErrorOwned
FlexBasisParseError
FlexBasisParseErrorOwned
FlexDirectionParseError
FlexDirectionParseErrorOwned
FlexGrowParseError
FlexGrowParseErrorOwned
FlexShrinkParseError
FlexShrinkParseErrorOwned
FlexWrapParseError
FlexWrapParseErrorOwned
JustifyContentParseError
JustifyContentParseErrorOwned
LayoutAlignContent
Represents an align-content attribute, which aligns a flex container’s lines within it when there is extra space in the cross-axis. Default: Stretch
LayoutAlignItems
Represents an align-items attribute, which defines the default behavior for how flex items are laid out along the cross axis on the current line. Default: Stretch
LayoutAlignSelf
Represents an align-self attribute, which allows the default alignment (or the one specified by align-items) to be overridden for individual flex items. Default: Auto
LayoutAxis
LayoutFlexBasis
Represents a flex-basis attribute
LayoutFlexDirection
Represents a flex-direction attribute, which establishes the main-axis, thus defining the direction flex items are placed in the flex container. Default: Row
LayoutFlexWrap
Represents a flex-wrap attribute, which determines whether flex items are forced onto one line or can wrap onto multiple lines. Default: NoWrap
LayoutJustifyContent
Represents a justify-content attribute, which defines the alignment along the main axis. Default: Start (flex-start)

Functions§

parse_layout_align_content
parse_layout_align_items
parse_layout_align_self
parse_layout_flex_basis
parse_layout_flex_direction
parse_layout_flex_grow
parse_layout_flex_shrink
parse_layout_flex_wrap
parse_layout_justify_content