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
type Event = InputEvent<LibinputInputBackend>
type Event = InputEvent<LibinputInputBackend>
The type of events generated by your source.
fn process_events<F>(
&mut self,
_: Readiness,
token: Token,
callback: F
) -> Result<PostAction> where
F: FnMut(Self::Event, &mut ()) -> Self::Ret,
fn process_events<F>(
&mut self,
_: Readiness,
token: Token,
callback: F
) -> Result<PostAction> where
F: FnMut(Self::Event, &mut ()) -> Self::Ret,
Process any relevant events Read more
Register yourself to this poll instance Read more
Re-register your file descriptors Read more
type EventError = IoError
type EventError = IoError
Type representing errors that may be returned when processing events
type KeyboardKeyEvent = KeyboardKeyEvent
type KeyboardKeyEvent = KeyboardKeyEvent
Type representing keyboard events
type PointerAxisEvent = PointerAxisEvent
type PointerAxisEvent = PointerAxisEvent
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 TouchDownEvent = TouchDownEvent
type TouchDownEvent = TouchDownEvent
Type representing touch events starting
type TouchUpEvent = TouchUpEvent
type TouchUpEvent = TouchUpEvent
Type representing touch events ending
type TouchMotionEvent = TouchMotionEvent
type TouchMotionEvent = TouchMotionEvent
Type representing touch events from moving
type TouchCancelEvent = TouchCancelEvent
type TouchCancelEvent = TouchCancelEvent
Type representing canceling of touch events
type TouchFrameEvent = TouchFrameEvent
type TouchFrameEvent = TouchFrameEvent
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
type SpecialEvent = UnusedEvent
type SpecialEvent = UnusedEvent
Special events that are custom to this backend
fn dispatch_new_events<F>(&mut self, callback: F) -> Result<(), IoError> where
F: FnMut(InputEvent<Self>),
fn dispatch_new_events<F>(&mut self, callback: F) -> Result<(), IoError> where
F: FnMut(InputEvent<Self>),
Processes new events and calls the provided callback.
Make this object listen for signals from given signaler
Pressed button of the event
State of the button
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
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 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
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 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
Auto Trait Implementations
impl !RefUnwindSafe for LibinputInputBackend
impl !Send for LibinputInputBackend
impl !Sync for LibinputInputBackend
impl Unpin for LibinputInputBackend
impl !UnwindSafe for LibinputInputBackend
Blanket Implementations
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
pub fn vzip(self) -> V