Crate ailloli_ui_devtools_core

Source
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§

DebugColor
Serializable floating-point RGBA color.
DebugConstraints
Serializable min/max layout constraints in logical pixels.
DebugFlexItem
Serializable flex-item inputs attached to a retained child.
DebugLayoutInfo
Optional layout-pass inputs and measured output for one element.
DebugLayoutSizeHint
Serializable width/height hints exposed by a retained element.
DebugNode
Flattened retained-tree node with layout, clip, style, and warning diagnostics.
DebugOffset
Serializable logical translation.
DebugPoint
Serializable point in logical viewport coordinates.
DebugRect
Serializable logical-pixel rectangle.
DebugSize
Serializable logical width and height.
DebugSlot
Parent-assigned child slot in local and absolute logical coordinates.
DebugSnapshot
Serializable snapshot of one retained subtree and its derived diagnostics.
DebugWarning
Human-readable diagnostic optionally attributed to one node.
TerminalDebugSnapshot
Terminal snapshot plus deterministic cell identities for DevTools inspection.

Enums§

DebugDrawCmd
Backend-neutral overlay primitive derived from hover, selection, or warnings.
DebugLength
Serializable declarative length used by size hints and flex basis.
DebugWarningKind
Stable warning categories emitted by compute_warnings.
DevToolsClientMessage
Tagged client-to-host DevTools protocol message.
DevToolsMode
Requested DevTools presentation mode.
DevToolsServerMessage
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 config and adds deterministic cell identities.