pub struct HitEntry {
pub id: HitId,
pub rect: Rect,
pub region: HitRegion,
pub data: HitData,
pub z_order: u16,
/* private fields */
}Expand description
A registered widget’s hit information.
Fields§
§id: HitIdWidget identifier.
rect: RectBounding rectangle.
region: HitRegionRegion type for hit callbacks.
data: HitDataUser data attached to this hit.
z_order: u16Z-order layer (higher = on top).
Implementations§
Trait Implementations§
impl Copy for HitEntry
impl Eq for HitEntry
impl StructuralPartialEq for HitEntry
Auto Trait Implementations§
impl Freeze for HitEntry
impl RefUnwindSafe for HitEntry
impl Send for HitEntry
impl Sync for HitEntry
impl Unpin for HitEntry
impl UnwindSafe for HitEntry
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