Struct smithay::backend::libinput::LibinputInputBackend[][src]

pub struct LibinputInputBackend { /* fields omitted */ }
Expand description

Libinput based InputBackend.

Tracks input of all devices given manually or via a udev seat to a provided libinput context.

Implementations

Initialize a new LibinputInputBackend from a given already initialized libinput context.

Trait Implementations

Extracts the raw file descriptor. Read more

Formats the value using the given formatter. Read more

Returns an upward counting variable useful for event ordering. Read more

Returns the device, that generated this event

Returns an upward counting variable useful for event ordering. Read more

Returns the device, that generated this event

Returns an upward counting variable useful for event ordering. Read more

Returns the device, that generated this event

Returns an upward counting variable useful for event ordering. Read more

Returns the device, that generated this event

Returns an upward counting variable useful for event ordering. Read more

Returns the device, that generated this event

Returns an upward counting variable useful for event ordering. Read more

Returns the device, that generated this event

Returns an upward counting variable useful for event ordering. Read more

Returns the device, that generated this event

Returns an upward counting variable useful for event ordering. Read more

Returns the device, that generated this event

Returns an upward counting variable useful for event ordering. Read more

Returns the device, that generated this event

Returns an upward counting variable useful for event ordering. Read more

Returns the device, that generated this event

Returns an upward counting variable useful for event ordering. Read more

Returns the device, that generated this event

The type of events generated by your source.

Some metadata of your event source Read more

The return type of the user callback Read more

Process any relevant events Read more

Register yourself to this poll instance Read more

Re-register your file descriptors Read more

Unregister your file descriptors Read more

Type representing errors that may be returned when processing events

Type representing input devices

Type representing keyboard events

Type representing axis events on pointer devices

Type representing button events on pointer devices

Type representing motion events of pointer devices

Type representing motion events of pointer devices

Type representing touch events starting

Type representing touch events ending

Type representing touch events from moving

Type representing canceling of touch events

Type representing touch frame events

Type representing axis events on tablet devices

Type representing proximity events on tablet devices

Type representing tip events on tablet devices

Type representing button events on tablet tool devices

Special events that are custom to this backend

Processes new events and calls the provided callback.

Code of the pressed key. See linux/input-event-codes.h

State of the key

Total number of keys pressed on all devices on the associated Seat

Make this object listen for signals from given signaler

Amount of scrolling in pixels on the given Axis. Read more

Amount of scrolling in discrete steps on the given Axis. Read more

Source of the scroll event.

Pressed button of the event

State of the button

Device x position in it’s original coordinate space. Read more

Device y position in it’s original coordinate space. Read more

Device x position converted to the targets coordinate space’s width. E.g. the focused output’s width. Read more

Device y position converted to the targets coordinate space’s height. E.g. the focused output’s height. Read more

Device position in it’s original coordinate space. Read more

Device position converted to the targets coordinate space. E.g. the focused output’s resolution. Read more

Delta on the x axis between the last and new pointer device position interpreted as pixel movement

Delta on the y axis between the last and new pointer device position interpreted as pixel movement

Delta between the last and new pointer device position interpreted as pixel movement

Return the button that triggered this event.

For the button of a TabletToolButtonEvent, return the total number of buttons pressed on all devices on the associated seat after the the event was triggered. Read more

Return the button state of the event.

Get tablet tool that caused this event

Delta on the x axis between the last and new pointer device position interpreted as pixel movement

Delta on the y axis between the last and new pointer device position interpreted as pixel movement

Returns the x coordinate of the tablet tool, in mm from the top left corner of the tablet in its current logical orientation.

Returns the y coordinate of the tablet tool, in mm from the top left corner of the tablet in its current logical orientation.

Return the current absolute X coordinate of the tablet tool event, transformed to screen coordinates.

Return the current absolute Y coordinate of the tablet tool event, transformed to screen coordinates.

Returns the current distance from the tablet’s sensor, normalized to the range [0, 1] Read more

Check if the distance axis was updated in this event.

Returns the current pressure being applied on the tool in use, normalized to the range [0, 1]. Read more

Check if the pressure axis was updated in this event.

Returns the current position of the slider on the tool, normalized to the range [-1, 1]. Read more

Check if the slider axis was updated in this event.

Returns the current tilt along the X axis of the tablet’s current logical orientation, in degrees off the tablet’s z axis. Read more

Check if the tilt x axis was updated in this event.

Returns the current tilt along the Y axis of the tablet’s current logical orientation, in degrees off the tablet’s z axis. Read more

Check if the tilt y axis was updated in this event.

Returns the current z rotation of the tool in degrees, clockwise from the tool’s logical neutral position. Read more

Check if the z-rotation axis was updated in this event.

Return the delta for the wheel in degrees.

Return the delta for the wheel in discrete steps (e.g. wheel clicks).

Check if the wheel axis was updated in this event.

Delta between the last and new pointer device position interpreted as pixel movement

Tool position in the device’s native coordinate space

Tool position converted into the target coordinate space.

Returns the current tilt along the (X,Y) axis of the tablet’s current logical orientation, in degrees off the tablet’s z axis. Read more

Check if the tilt was updated in this event.

Returns the new proximity state of a tool from a proximity event. Read more

Returns the new tip state of a tool from a tip event. Read more

TouchSlot, if the device has multi-touch capabilities

TouchSlot, if the device has multi-touch capabilities

Touch event’s x-coordinate in the device’s native coordinate space Read more

Touch event’s x-coordinate in the device’s native coordinate space Read more

Touch event’s x position converted to the targets coordinate space’s width. E.g. the focused output’s width. Read more

Touch event’s y position converted to the targets coordinate space’s width. E.g. the focused output’s width. Read more

Touch position in the device’s native coordinate space Read more

Touch position converted into the target coordinate space. E.g. the focused output’s resolution. Read more

TouchSlot, if the device has multi-touch capabilities

Touch event’s x-coordinate in the device’s native coordinate space Read more

Touch event’s x-coordinate in the device’s native coordinate space Read more

Touch event’s x position converted to the targets coordinate space’s width. E.g. the focused output’s width. Read more

Touch event’s y position converted to the targets coordinate space’s width. E.g. the focused output’s width. Read more

Touch position in the device’s native coordinate space Read more

Touch position converted into the target coordinate space. E.g. the focused output’s resolution. Read more

TouchSlot, if the device has multi-touch capabilities

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

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.