Skip to main content

Module devtools

Module devtools 

Source
Expand description

The read/drive surface sk-devtools sits on: selector queries against the REAL cascade matcher, node dumps off the retained tree, and synthesized input through the ordinary dispatch path.

It lives here because the node slab and side maps are private to this crate; sk-app owns the transport. Nothing is dev-gated here: sk-app compiles its callers out under --features prod.

Structs§

ImageStats
KeptFull
NodeInfo
ResidencyStats
TreeMem

Functions§

aim_point
click
computed_styles
container_query_counts
Layouts re-run for container queries, and query containers whose size moved, since start.
focus
focused_node
frame_counts
(element-tree builds, paint-only presents) since start, in any window; a <video> or moving <canvas> frame is a present (crate::live).
gpu_canvas_presentation_stats
hit_test
The deepest ELEMENT gpui would hit at (x, y), as the path from the root down (empty over nothing): gpui’s own hit test (every element gets a hitbox tagged with its node id in a dev host), so transforms, paint order and masks are exact. Ties go to the deepest, then the last in document order.
hit_test_in
hit_test restricted to the window that paints root (0 = primary): hitboxes live in the painting window’s frame. The path is still root-first from the document root.
image_stats
ime
A text field’s IME, as the platform drives the field’s input handler: text becomes the composition’s pre-edit ("" cancels it), or with commit its committed text.
inline_style
One inline declaration as (value, important).
input_value
is_focused
is_hovered
See [tree::is_hovered] for the one case that answers false while a browser would say true.
matched_rules
node_count
node_info
overlay_bounds
query
residency_stats
root_id
scroll
scroll_chain_count
set_image_tracking
set_inline_style
Writes one inline declaration (None removes it) as style.setProperty would, minus the mutation observers: the inspector’s edits are not the app’s.
shading
The --shading effect each state of id resolved to, base first; none is left out.
shading_nodes
Elements in document order whose computed style paints a --shading effect in some state, or whose inline style declares one.
side_stats
text_content
tree_mem