Skip to main content

Module ui_layout

Module ui_layout 

Source
Expand description

Zero-Heap Flexbox & CSS-Grid-Lite UI Layout Constraint Solver (ui_layout.rs)

Re-exports the canonical zero-heap UI layout constraint solver from etalon_render::ui_canvas.

Structs§

ComputedUiRect
Resolved screen-space rectangle and scissor clip rectangle for a layout node.
Edges
HudVertex
UiLayoutNode
Single node in the zero-heap intrusive UI layout tree.
UiLayoutStyle
Layout style properties for a UiLayoutNode (supports Flexbox + 2D CSS-Grid-lite + scissor clipping).
ZeroHeapUiLayoutTree
Zero-heap two-pass (measure + arrange) Flexbox & 2D Grid layout solver.

Enums§

AlignItems
FlexDirection
JustifyContent
SizeRule

Constants§

MAX_UI_LAYOUT_NODES
Maximum layout nodes supported in a single zero-heap UI layout tree.
MAX_UI_NODES
NO_UI_NODE

Type Aliases§

HudComputedUiRect
Alias to the compact HUD computed rect in crate::hud.
HudUiLayoutTree
Alias to the compact 256-node HUD layout tree in crate::hud.
Margin
Padding
UiLayoutTree
Type alias so callers can refer to UiLayoutTree or ZeroHeapUiLayoutTree interchangeably.