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.
- Layout
Style - 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.