pub struct RawPointerSample {
pub pointer_id: PointerId,
pub phase: PointerPhase,
pub position: Point,
pub button: PointerButton,
pub time_nanos: u64,
}Expand description
One raw pointer contact as delivered by a platform touch entry point, before
resampling: which contact it is, the phase transition, the logical
(density-independent) position the shell already converted, the button
(always PointerButton::Primary for touch), and a shell-supplied monotonic
timestamp (see the module’s Clock domain note).
Fields§
§pointer_id: PointerIdWhich contact the sample belongs to — selects its resampling lane.
phase: PointerPhase§position: Point§time_nanos: u64Trait Implementations§
Source§impl Clone for RawPointerSample
impl Clone for RawPointerSample
impl Copy for RawPointerSample
Source§impl Debug for RawPointerSample
impl Debug for RawPointerSample
Source§impl PartialEq for RawPointerSample
impl PartialEq for RawPointerSample
impl StructuralPartialEq for RawPointerSample
Auto Trait Implementations§
impl Freeze for RawPointerSample
impl RefUnwindSafe for RawPointerSample
impl Send for RawPointerSample
impl Sync for RawPointerSample
impl Unpin for RawPointerSample
impl UnsafeUnpin for RawPointerSample
impl UnwindSafe for RawPointerSample
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.