Struct input::event::pointer::PointerMotionEvent [−][src]
pub struct PointerMotionEvent { /* fields omitted */ }
Expand description
An event related to moving a pointer
Implementations
Return the delta between the last event and the current event.
If a device employs pointer acceleration, the delta returned by this function is the accelerated delta.
Relative motion deltas are to be interpreted as pixel movement of a standardized mouse. See Normalization of relative motion for more details.
Return the relative delta of the unaccelerated motion vector of the current event.
Relative unaccelerated motion deltas are raw device coordinates. Note that these coordinates are subject to the device’s native resolution. Touchpad coordinates represent raw device coordinates in the X resolution of the touchpad. See Normalization of relative motion for more details.
Any rotation applied to the device also applies to unaccelerated motion
(see Device::rotation_set_angle
).
Return the delta between the last event and the current event.
If a device employs pointer acceleration, the delta returned by this function is the accelerated delta.
Relative motion deltas are to be interpreted as pixel movement of a standardized mouse. See Normalization of relative motion for more details.
Return the relative delta of the unaccelerated motion vector of the current event.
Relative unaccelerated motion deltas are raw device coordinates. Note that these coordinates are subject to the device’s native resolution. Touchpad coordinates represent raw device coordinates in the X resolution of the touchpad. See Normalization of relative motion for more details.
Any rotation applied to the device also applies to unaccelerated motion
(see Device::rotation_set_angle
).
Trait Implementations
Receive a raw pointer representing this type.
Auto Trait Implementations
impl !RefUnwindSafe for PointerMotionEvent
impl !Send for PointerMotionEvent
impl !Sync for PointerMotionEvent
impl Unpin for PointerMotionEvent
impl !UnwindSafe for PointerMotionEvent