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.

Returns the underlying libinput context

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Convert into a general Event again

Return the device associated with this event. Read more

Create a new instance of this type from a raw pointer and it’s context. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The event time for this event

The event time for this event in microseconds

Convert into a general TouchEvent again

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.