Enum smithay::backend::input::UnusedEvent[][src]

pub enum UnusedEvent {}
Expand description

Used to mark events never emitted by an InputBackend implementation.

Implements all event types and can be used in place for any Event type, that is not used by an InputBackend implementation. Initialization is not possible, making accidental use impossible and enabling a lot of possible compiler optimizations.

Trait Implementations

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

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

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

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. 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.