Trait TouchEventSlot

Source
pub trait TouchEventSlot: AsRaw<libinput_event_touch> {
    // Provided methods
    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§

Source

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.

Source

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§