Skip to main content

Module layout

Module layout 

Source
Expand description

Layout system for UI elements.

Provides both the legacy anchor-based world-space layout and a new flex/grid/absolute/stack/flow layout system for pixel-space UI.

§Legacy types (world-space, used by UiRoot)

§New layout types (pixel-space)

Structs§

AbsoluteItem
Absolutely positioned element.
AbsoluteLayout
Absolute positioning layout (items placed relative to parent edges/center).
AutoLayout
FlexItem
An item in a flex layout.
FlexLayout
Flex-style layout (row or column).
FlowLayout
Wrapping inline flow layout (like CSS inline-block).
GridLayout
CSS-like grid layout.
GridPlacement
A grid cell placement.
LayoutNode
A node in a layout tree.
ResponsiveBreakpoints
Responsive breakpoint system.
SafeAreaInsets
Safe area insets (for notch-aware layout).
StackLayout
A stack of overlapping items, ordered by z-index.
UiLayout
UiRect
A 2D rectangle in world space, used for layout calculations.

Enums§

Anchor
Screen anchor for positioning UI elements.
AnchorPoint
Anchor point for absolute positioning.
Axis
Layout axis.
Breakpoint
Named responsive breakpoints.
Constraint
Size constraint for layout nodes.
CrossAlign
Cross-axis alignment.
FlexWrap
Whether flex items wrap to a new line.
JustifyContent
Main-axis content distribution for flex/grid.
StackAlign
Cross-axis alignment for stack layout.
Track
A column or row track definition.