pub struct HitGeometry<'a> {
pub rect: Rect,
pub quad: [[f32; 2]; 4],
pub local_bounds: Rect,
pub world_to_local: ProjectiveTransform,
pub hit_clip_bounds: Option<Rect>,
pub hit_clips: &'a [HitClip],
}Expand description
Geometry for a hit target, borrowing the clip chain until the sink records it.
Fields§
§rect: Rect§quad: [[f32; 2]; 4]§local_bounds: Rect§world_to_local: ProjectiveTransform§hit_clip_bounds: Option<Rect>§hit_clips: &'a [HitClip]Trait Implementations§
Source§impl<'a> Clone for HitGeometry<'a>
impl<'a> Clone for HitGeometry<'a>
Source§fn clone(&self) -> HitGeometry<'a>
fn clone(&self) -> HitGeometry<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for HitGeometry<'a>
Auto Trait Implementations§
impl<'a> Freeze for HitGeometry<'a>
impl<'a> RefUnwindSafe for HitGeometry<'a>
impl<'a> Send for HitGeometry<'a>
impl<'a> Sync for HitGeometry<'a>
impl<'a> Unpin for HitGeometry<'a>
impl<'a> UnsafeUnpin for HitGeometry<'a>
impl<'a> UnwindSafe for HitGeometry<'a>
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