pub struct HitTest<'a, 's, D> { /* private fields */ }
Expand description
Builder for configuring and executing a hit test.
Implementations§
source§impl<'a, 's, D> HitTest<'a, 's, D>where
D: PathData,
impl<'a, 's, D> HitTest<'a, 's, D>where
D: PathData,
sourcepub fn with_scratch(data: D, scratch: &'s mut Scratch) -> Self
pub fn with_scratch(data: D, scratch: &'s mut Scratch) -> Self
Creates a new hit test builder for the specified path data and scratch memory.
sourcepub fn transform(&mut self, transform: Option<Transform>) -> &mut Self
pub fn transform(&mut self, transform: Option<Transform>) -> &mut Self
Sets the transformation matrix of the path.
Auto Trait Implementations§
impl<'a, 's, D> !Freeze for HitTest<'a, 's, D>
impl<'a, 's, D> !RefUnwindSafe for HitTest<'a, 's, D>
impl<'a, 's, D> Send for HitTest<'a, 's, D>where
D: Send,
impl<'a, 's, D> !Sync for HitTest<'a, 's, D>
impl<'a, 's, D> Unpin for HitTest<'a, 's, D>where
D: Unpin,
impl<'a, 's, D> !UnwindSafe for HitTest<'a, 's, D>
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