One published node.
Every field describes the latest successful arrangement. A node that was not arranged (a hidden child, under a hidden ancestor, or outside the arranged root) publishes only its id, with visible 0 and every other field zero. An explicitly arranged hidden root retains its geometry but has visible 0; its descendants are not arranged.
rmgui_layout_snapshot_node_t.shape
Borrowed additional hit shape, stretched over rect; NULL means none.
rmgui_layout_snapshot_node_t.visual_bounds
Bounds that painting through visual may cover; no extra clipping to the node's arranged rect. Zero for nodes not arranged or hidden.
rmgui_layout_snapshot_node_t.image_rect, rmgui_layout_snapshot_node_t.image_clip
IMAGE/GRAPHIC only: where the artwork lands and its clip.
rmgui_layout_snapshot_node_t.text_x, rmgui_layout_snapshot_node_t.text_y
Text origin: the content box's left edge (offset by text_align) and top.
rmgui_layout_snapshot_node_t.flow_w
Wrap-mode text leaves: the width the kernel wrapped the text at; 0 otherwise.
rmgui_layout_snapshot_node_t.text_lines
Retained lines, or NULL without storage or a positive wrapping width; valid for this snapshot's lifetime. When non-NULL, text_w/text_h are the wrapped content extent, excluding padding and independent of clipping/preferred node size.
rmgui_layout_snapshot_node_t.text_metrics
Optional single-owner shaping cache supplied by the text binding, or selected by rmgui_layout_set_font_metrics from the effective userdata. Paragraph painting mutates the cache. A published node keeps its cache pointer even if the binding changes or a subsequent arrangement fails; keep the cache alive through painting every snapshot that borrows it.
rmgui_layout_snapshot_node_t.text_bytes
Ellipsis text leaves: the fitted UTF-8 prefix length and whether U+2026 follows it. Painters never re-fit.
rmgui_layout_snapshot_node_t.visible
1 when the node is not hidden and rect meets clip.
rmgui_layout_snapshot_node_t.clipped
1 when rect extends outside clip.
rmgui_layout_snapshot_node_t.overflow
rmgui_layout_overflow_t
rmgui_layout_snapshot_node_t.parent
Published tree parent index, or -1 for the arranged root.
rmgui_layout_snapshot_node_t.a11y
NULL for unannotated/hidden nodes; immutable for snapshot lifetime.