pub struct HitTest {
pub regular_hit_test_nodes: BTreeMap<NodeId, HitTestItem>,
pub scroll_hit_test_nodes: BTreeMap<NodeId, ScrollHitTestItem>,
pub scrollbar_hit_test_nodes: BTreeMap<ScrollbarHitId, ScrollbarHitTestItem>,
pub cursor_hit_test_nodes: BTreeMap<NodeId, CursorHitTestItem>,
}Expand description
Result of a hit test against a single DOM, containing all nodes hit by the cursor along with scroll, scrollbar, and cursor-type information.
Fields§
§regular_hit_test_nodes: BTreeMap<NodeId, HitTestItem>§scroll_hit_test_nodes: BTreeMap<NodeId, ScrollHitTestItem>§scrollbar_hit_test_nodes: BTreeMap<ScrollbarHitId, ScrollbarHitTestItem>Hit test results for scrollbar components.
cursor_hit_test_nodes: BTreeMap<NodeId, CursorHitTestItem>Hit test results for cursor areas (text runs with cursor property). Maps NodeId to (CursorType, hit_depth) - the cursor type and z-depth of the hit.
Implementations§
Trait Implementations§
Source§impl PartialOrd for HitTest
impl PartialOrd for HitTest
impl StructuralPartialEq for HitTest
Auto Trait Implementations§
impl Freeze for HitTest
impl RefUnwindSafe for HitTest
impl Send for HitTest
impl Sync for HitTest
impl Unpin for HitTest
impl UnsafeUnpin for HitTest
impl UnwindSafe for HitTest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more