pub struct PointerEvent {
pub phase: PointerPhase,
pub x: f64,
pub y: f64,
pub hit: Hit,
}Expand description
One pointer event in a raw input stream.
Fields§
§phase: PointerPhaseThe phase of this event.
x: f64Pointer x position in workspace coordinates.
y: f64Pointer y position in workspace coordinates.
hit: HitWhat is under the pointer for this event.
Trait Implementations§
Source§impl Clone for PointerEvent
impl Clone for PointerEvent
Source§fn clone(&self) -> PointerEvent
fn clone(&self) -> PointerEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PointerEvent
impl Debug for PointerEvent
Source§impl PartialEq for PointerEvent
impl PartialEq for PointerEvent
Source§fn eq(&self, other: &PointerEvent) -> bool
fn eq(&self, other: &PointerEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PointerEvent
Auto Trait Implementations§
impl Freeze for PointerEvent
impl RefUnwindSafe for PointerEvent
impl Send for PointerEvent
impl Sync for PointerEvent
impl Unpin for PointerEvent
impl UnsafeUnpin for PointerEvent
impl UnwindSafe for PointerEvent
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