pub trait TouchEventSlot: AsRaw<libinput_event_touch> {
    fn seat_slot(&self) -> u32 { ... }
    fn slot(&self) -> Option<u32> { ... }
}
Expand description

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

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.

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