Expand description
Backend-agnostic DevTools snapshots, warnings, picking, and wire messages.
Snapshot geometry uses logical pixels and stable numeric element IDs. The collector walks retained children in tree order; picking walks the flattened snapshot in reverse so later, deeper paint candidates win. Warning geometry comparisons tolerate half a logical pixel.
Structs§
- Debug
Color - Serializable floating-point RGBA color.
- Debug
Constraints - Serializable min/max layout constraints in logical pixels.
- Debug
Flex Item - Serializable flex-item inputs attached to a retained child.
- Debug
Layout Info - Optional layout-pass inputs and measured output for one element.
- Debug
Layout Size Hint - Serializable width/height hints exposed by a retained element.
- Debug
Node - Flattened retained-tree node with layout, clip, style, and warning diagnostics.
- Debug
Offset - Serializable logical translation.
- Debug
Point - Serializable point in logical viewport coordinates.
- Debug
Rect - Serializable logical-pixel rectangle.
- Debug
Size - Serializable logical width and height.
- Debug
Slot - Parent-assigned child slot in local and absolute logical coordinates.
- Debug
Snapshot - Serializable snapshot of one retained subtree and its derived diagnostics.
- Debug
Warning - Human-readable diagnostic optionally attributed to one node.
- Terminal
Debug Snapshot - Terminal snapshot plus deterministic cell identities for DevTools inspection.
Enums§
- Debug
Draw Cmd - Backend-neutral overlay primitive derived from hover, selection, or warnings.
- Debug
Length - Serializable declarative length used by size hints and flex basis.
- Debug
Warning Kind - Stable warning categories emitted by
compute_warnings. - DevTools
Client Message - Tagged client-to-host DevTools protocol message.
- DevTools
Mode - Requested DevTools presentation mode.
- DevTools
Server Message - Tagged host-to-client DevTools protocol message.
Functions§
- collect_
debug_ snapshot - Collects a subtree with no selected/hovered state at frame index zero.
- collect_
debug_ snapshot_ with_ state - Collects a pre-order subtree and derives warnings with explicit host state.
- compute_
warnings - Replaces snapshot-wide and per-node derived warning lists.
- debug_
draw_ cmds - Builds hover, selection, then warning outlines in deterministic order.
- pick_
element_ at - Returns the topmost laid-out node containing a logical viewport point.
- terminal_
debug_ snapshot - Captures terminal state with
configand adds deterministic cell identities.