pub struct PointerSample {
pub id: PointerId,
pub at: Pos2,
pub phase: Phase,
pub button: Option<Button>,
pub held: Held,
pub kind: PointerKind,
pub shift: Shift,
}Expand description
One pointer event, in canvas-relative CSS pixels.
Fields§
§id: PointerId§at: Pos2§phase: PhaseThe button Phase::Down and Phase::Up name; a motion names none.
held: Held§kind: PointerKind§shift: ShiftTrait Implementations§
Source§impl Clone for PointerSample
impl Clone for PointerSample
Source§fn clone(&self) -> PointerSample
fn clone(&self) -> PointerSample
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PointerSample
impl Debug for PointerSample
Source§impl PartialEq for PointerSample
impl PartialEq for PointerSample
impl Copy for PointerSample
impl StructuralPartialEq for PointerSample
Auto Trait Implementations§
impl Freeze for PointerSample
impl RefUnwindSafe for PointerSample
impl Send for PointerSample
impl Sync for PointerSample
impl Unpin for PointerSample
impl UnsafeUnpin for PointerSample
impl UnwindSafe for PointerSample
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