Skip to main content

ICompositionHitTester

Trait ICompositionHitTester 

Source
pub trait ICompositionHitTester {
    type Input: Clone;

    // Required methods
    fn transform(input: &Self::Input, matrix: Matrix) -> Self::Input;
    fn hit_test(
        visual: &CompositionVisual,
        input: &Self::Input,
    ) -> IntersectionResult;
    fn transformed_sub_tree_bounds_match(
        bounds: LtrbRect,
        input: &Self::Input,
    ) -> bool;
    fn clipped_bounds_match(
        visual: &CompositionVisual,
        input: &Self::Input,
    ) -> bool;
    fn clip_matches(clip: &dyn IGeometryImpl, input: &Self::Input) -> bool;
}
Expand description

A kind of hit test of the composition visual tree: what is tested (a point, a geometry) and how it relates to visuals.

Required Associated Types§

Required Methods§

Source

fn transform(input: &Self::Input, matrix: Matrix) -> Self::Input

Source

fn hit_test( visual: &CompositionVisual, input: &Self::Input, ) -> IntersectionResult

Source

fn transformed_sub_tree_bounds_match( bounds: LtrbRect, input: &Self::Input, ) -> bool

Source

fn clipped_bounds_match(visual: &CompositionVisual, input: &Self::Input) -> bool

Source

fn clip_matches(clip: &dyn IGeometryImpl, input: &Self::Input) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§