Expand description
Layout for Kova Native.
LayoutStyle is Kova Native’s own vocabulary for flexbox, grid, block,
absolute positioning, sizing constraints, spacing and overflow. The
LayoutEngine solves it incrementally with taffy: nodes cache their
results and only dirty subtrees are recomputed.
Structs§
- Axes
- Width/height pair for layout properties.
- Grid
Style - Layout
Engine - An incremental layout tree.
- Layout
Id - Handle to a node in the
LayoutEngine. - Layout
Style - Everything that influences layout.
- Measure
Input - Inputs passed to leaf measure functions (e.g. text).
- Node
Layout - Computed layout of a node, relative to its parent’s border box.
Enums§
- Align
- Cross axis alignment (
align-items,align-self,justify-items). - Available
Space - Space available to a node along one axis while measuring.
- Display
- Flex
Direction - Flex
Wrap - Grid
Placement - Placement of a grid item along one axis.
- Justify
- Main axis distribution (
justify-content,align-content). - Length
- A length that can be absolute, relative to the parent, or automatic.
- Overflow
- Position
- Track
- A grid track size.