Skip to main content

hit_test

Function hit_test 

Source
pub fn hit_test(x: f32, y: f32, window: &Window) -> Vec<u32>
Expand description

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.