Struct input::event::pointer::PointerMotionEvent
[−]
[src]
pub struct PointerMotionEvent { /* fields omitted */ }An event related to moving a pointer
Methods
impl PointerMotionEvent[src]
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.
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).
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.
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).
Trait Implementations
impl Eq for PointerMotionEvent[src]
impl Debug for PointerMotionEvent[src]
impl FromRaw<libinput_event_pointer> for PointerMotionEvent[src]
unsafe fn from_raw(ffi: *mut libinput_event_pointer) -> Self
Create a new instance of this type from a raw pointer. Read more
impl AsRaw<libinput_event_pointer> for PointerMotionEvent[src]
fn as_raw(&self) -> *const libinput_event_pointer
Receive a raw pointer representing this type.
impl PartialEq for PointerMotionEvent[src]
fn eq(&self, other: &Self) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Hash for PointerMotionEvent[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl EventTrait for PointerMotionEvent[src]
fn into_event(self) -> Event where Self: Sized
Convert into a general Event again
fn context(&self) -> Libinput
Get the libinput context from the event.
fn device(&self) -> Device
Return the device associated with this event. Read more