pub struct PointerSlot {
pub key: PointerKey,
pub primary: bool,
pub blocked: bool,
pub buttons: u16,
pub down_target: NodeId,
pub last_target: NodeId,
pub capture: NodeId,
pub pending_capture: NodeId,
pub claimed: bool,
pub down_xy: [f32; 2],
pub last_xy: [f32; 2],
pub down_ts: TimestampUs,
}Expand description
One active pointer.
Fields§
§key: PointerKey§primary: boolW3C isPrimary, fixed when the pointer became active.
blocked: boolA modal swallowed the press: the pointer’s events are dropped until it ends.
Pressed buttons at the latest sample.
down_target: NodeIdHit target of the down (the press target; NULL when nothing was hit).
last_target: NodeIdHit target of the latest uncaptured sample (per-pointer enter / leave).
capture: NodeIdCurrent capture target (NULL = none).
pending_capture: NodeIdPending capture target applied before the pointer’s next event.
claimed: boolThe capture is a claim (declarative or app-requested), not an implicit touch capture.
down_xy: [f32; 2]§last_xy: [f32; 2]§down_ts: TimestampUsTrait Implementations§
Source§impl Clone for PointerSlot
impl Clone for PointerSlot
impl Copy for PointerSlot
Source§impl Debug for PointerSlot
impl Debug for PointerSlot
Source§impl Default for PointerSlot
impl Default for PointerSlot
Source§impl PartialEq for PointerSlot
impl PartialEq for PointerSlot
impl StructuralPartialEq for PointerSlot
Auto Trait Implementations§
impl Forget for PointerSlot
impl Freeze for PointerSlot
impl Move for PointerSlot
impl RefUnwindSafe for PointerSlot
impl Send for PointerSlot
impl Sync for PointerSlot
impl Unpin for PointerSlot
impl UnsafeUnpin for PointerSlot
impl UnwindSafe for PointerSlot
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