Skip to main content

Module node_layout

Module node_layout 

Source

Structs§

LayoutHull
Per-axis local extents contributed by a node subtree for container measurement.
LayoutProperties
Unresolved layout inputs copied out of common properties before geometry calculation.
TransformAndBounds
Pax’s canonical representation of position, size, and transform, encoded as a transform (translation, rotation, scale, skew) and a separate width/height (bounds) value. Bounds are expressed as the (x1, y1) values of the axis-aligned pre-transform bounding box, where (x0, y0) are the origin.

Traits§

ComputableTransform

Functions§

add_symmetric_padding_to_content_layout_hull
Expand a content-space hull into the node’s padded outer layout space.
apply_container_frame
Apply a container-assigned child frame on top of the parent geometry.
apply_padding_frame
Apply a node’s padding to the container geometry seen by its children.
calculate_transform_and_bounds
Resolve one set of layout properties into concrete bounds and a window-space transform.
compute_tab
Compute a reactive TransformAndBounds property from layout properties plus parent geometry.
project_child_layout_hull_to_parent_space
Project a child’s local hull into its parent’s local layout space.
project_layout_hull
Project a local layout hull through the provided transform and return the axis-aligned hull in the destination coordinate space.
resolve_padded_autosize_axis
Solve an autosized outer axis from measured content and symmetric padding.