Skip to main content

Module layout

Module layout 

Source
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.
ConstraintLayout
Layout that applies min/max constraints to each child.
ConstraintRule
Constraint rule for a specific child by index.
DesiredSize
A node’s desired size as reported by Layout::measure.
FlexItem
Per-child flex configuration.
FlexLayout
Flexbox layout container.
GridItem
Per-child grid placement.
GridLayout
A 2D grid layout with configurable columns, rows, and gaps.
GridSpan
Span configuration for a grid item.
MinMax
A min/max range for a single dimension.
ResponsiveLayout
Selects a layout based on the available width compared to breakpoints.
ScrollContainer
A scroll container that offsets content and supports virtual scrolling.
SizeConstraints
Size constraints passed to layout algorithms.

Enums§

Align
Main axis direction.
CrossAlign
Cross-axis alignment.
FlexWrap
Wrapping behaviour.
JustifyContent
How to distribute remaining space on the main axis.
ScrollDirection
Which axes can scroll.

Traits§

Layout
Trait implemented by all layout algorithms.