Skip to main content

element_positions

Function element_positions 

Source
pub fn element_positions(
    instance: &VRc<ItemTreeVTable, Instance>,
    element: &ElementRc,
    filter: ElementPositionFilter,
) -> Vec<HighlightedRect>
Available on crate feature internal-highlight only.
Expand description

Return the screen rectangles of every runtime item matching the given ElementRc, optionally filtering out those clipped by an ancestor. Public for downstream tooling such as the LSP element selection, whose hit-testing needs the ExcludeClipped filter.