Struct input::event::pointer::PointerMotionEvent [] [src]

pub struct PointerMotionEvent { /* fields omitted */ }

An event related to moving a pointer

Methods

impl PointerMotionEvent
[src]

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

impl Eq for PointerMotionEvent
[src]

impl Debug for PointerMotionEvent
[src]

Formats the value using the given formatter.

impl FromRaw<libinput_event_pointer> for PointerMotionEvent
[src]

Create a new instance of this type from a raw pointer. Read more

impl AsRaw<libinput_event_pointer> for PointerMotionEvent
[src]

Receive a raw pointer representing this type.

impl PartialEq for PointerMotionEvent
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for PointerMotionEvent
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl EventTrait for PointerMotionEvent
[src]

Convert into a general Event again

Get the libinput context from the event.

Return the device associated with this event. Read more

impl Drop for PointerMotionEvent
[src]

A method called when the value goes out of scope. Read more