Trait input::event::touch::TouchEventSlot
[−]
[src]
pub trait TouchEventSlot: AsRaw<libinput_event_touch> {
fn seat_slot(&self) -> u32 { ... }
fn slot(&self) -> Option<u32> { ... }
}Touch slot related functions all TouchEvents implement, that can be mapped to slots.
A touch slot is grouping all events related to a single gesture together.
Provided Methods
fn seat_slot(&self) -> u32
Get the seat slot of the touch event.
A seat slot is a non-negative seat wide unique identifier of an active touch point.
Events from single touch devices will be represented as one individual touch point per device.
fn slot(&self) -> Option<u32>
Get the slot of this touch event.
See the kernel's multitouch protocol B documentation for more information.
If the touch event has no assigned slot, for example if it is from a
single touch device, this function returns None.
Implementors
impl TouchEventSlot for TouchDownEventimpl TouchEventSlot for TouchUpEventimpl TouchEventSlot for TouchMotionEventimpl TouchEventSlot for TouchCancelEvent