pub trait ApiHitTester: Send + Sync {
// Required method
fn hit_test(
&self,
pipeline_id: Option<PipelineId>,
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,
pipeline_id: Option<PipelineId>,
point: WorldPoint,
) -> HitTestResult
fn hit_test( &self, pipeline_id: Option<PipelineId>, point: WorldPoint, ) -> HitTestResult
Does a hit test on display items in the specified document, at the given point. If a pipeline_id is specified, it is used to further restrict the hit results so that only items inside that pipeline are matched. The vector of hit results will contain all display items that match, ordered from front to back.