pub struct HitClip {
pub quad: [[f32; 2]; 4],
pub bounds: Rect,
}Expand description
A clip that cuts a hit target, kept as a transformed rectangle.
Fields§
§quad: [[f32; 2]; 4]The clip rectangle after the layer transforms, as four corners in window space.
bounds: RectAxis-aligned bounds of quad in window coordinates.
Trait Implementations§
impl Copy for HitClip
impl StructuralPartialEq for HitClip
Auto Trait Implementations§
impl Freeze for HitClip
impl RefUnwindSafe for HitClip
impl Send for HitClip
impl Sync for HitClip
impl Unpin for HitClip
impl UnsafeUnpin for HitClip
impl UnwindSafe for HitClip
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