Trait azul_webrender_api::ApiHitTester[][src]

pub trait ApiHitTester: Send + Sync {
    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

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.

Implementors