pub trait ApiHitTester: Send + Sync {
// Required method
fn hit_test(&self, point: WorldPoint) -> HitTestResult;
}
Expand description
An object that can perform hit-testing without doing synchronous queries to the RenderBackendThread.
Required Methods§
Sourcefn hit_test(&self, point: WorldPoint) -> HitTestResult
fn hit_test(&self, point: WorldPoint) -> HitTestResult
Does a hit test on display items in the specified document, at the given point. The vector of hit results will contain all display items that match, ordered from front to back.