Skip to main content

Module layout

Module layout 

Source
Expand description

Constraint-based layout solver.

Converts relative constraints (center_in, offset, fill_parent) into absolute ResolvedBounds for each node. Also handles Column/Row/Grid layout modes for groups.

Structs§

Viewport
The canvas (viewport) dimensions.

Functions§

is_parent_managed
Check whether a node’s parent uses a managed layout (Column/Row/Grid).
resolve_layout
Resolve all node positions in the scene graph.
resolve_subtree
Re-resolve only the children of parent_idx, using its current bounds.