pub struct PointerMotionEvent { /* private fields */ }
Expand description
An event related to moving a pointer
Implementations§
Source§impl PointerMotionEvent
impl PointerMotionEvent
Sourcepub fn dx(&self) -> f64
pub fn dx(&self) -> f64
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.
Sourcepub fn dx_unaccelerated(&self) -> f64
pub fn dx_unaccelerated(&self) -> f64
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
).
Sourcepub fn dy(&self) -> f64
pub fn dy(&self) -> f64
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.
Sourcepub fn dy_unaccelerated(&self) -> f64
pub fn dy_unaccelerated(&self) -> f64
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
).