Expand description
Layout engine for agpu — composable layout algorithms.
Provides Layout trait and concrete implementations for flexbox,
grid, constraint-based, scroll container, and responsive layouts.
Structs§
- Breakpoint
- A breakpoint defines a minimum width at which a layout activates.
- Constraint
Layout - Layout that applies min/max constraints to each child.
- Constraint
Rule - Constraint rule for a specific child by index.
- Desired
Size - A node’s desired size as reported by
Layout::measure. - Flex
Item - Per-child flex configuration.
- Flex
Layout - Flexbox layout container.
- Grid
Item - Per-child grid placement.
- Grid
Layout - A 2D grid layout with configurable columns, rows, and gaps.
- Grid
Span - Span configuration for a grid item.
- MinMax
- A min/max range for a single dimension.
- Responsive
Layout - Selects a layout based on the available width compared to breakpoints.
- Scroll
Container - A scroll container that offsets content and supports virtual scrolling.
- Size
Constraints - Size constraints passed to layout algorithms.
Enums§
- Align
- Main axis direction.
- Cross
Align - Cross-axis alignment.
- Flex
Wrap - Wrapping behaviour.
- Justify
Content - How to distribute remaining space on the main axis.
- Scroll
Direction - Which axes can scroll.
Traits§
- Layout
- Trait implemented by all layout algorithms.