Skip to main content

Module style

Module style 

Source
Expand description

Per-view layout styles and value sanitizers.

Structs§

Indents
Optional indents from each edge of a container’s content box.
Inset
Absolute offsets from each edge of the containing block.
LayoutStyle
Layout properties for a single view.

Enums§

Position
Positioning mode for a view.

Functions§

sanitize_flex
Clamps a flex grow weight to a finite, non-negative value.
sanitize_indent
Clamps an indent to a finite, non-negative value.
sanitize_ratio
Keeps an aspect ratio only when it is finite and positive.
sanitize_shrink
Clamps a flex shrink weight; NaN becomes one and invalid values zero.