[][src]Trait wayland_protocols::unstable::tablet::v2::client::zwp_tablet_v2::EventHandler

pub trait EventHandler {
    fn name(&mut self, object: ZwpTabletV2, name: String) { ... }
fn id(&mut self, object: ZwpTabletV2, vid: u32, pid: u32) { ... }
fn path(&mut self, object: ZwpTabletV2, path: String) { ... }
fn done(&mut self, object: ZwpTabletV2) { ... }
fn removed(&mut self, object: ZwpTabletV2) { ... } }

An interface for handling events.

Provided methods

fn name(&mut self, object: ZwpTabletV2, name: String)

tablet device name

This event is sent in the initial burst of events before the wp_tablet.done event.

fn id(&mut self, object: ZwpTabletV2, vid: u32, pid: u32)

tablet device USB vendor/product id

This event is sent in the initial burst of events before the wp_tablet.done event.

fn path(&mut self, object: ZwpTabletV2, path: String)

path to the device

A system-specific device path that indicates which device is behind this wp_tablet. This information may be used to gather additional information about the device, e.g. through libwacom.

A device may have more than one device path. If so, multiple wp_tablet.path events are sent. A device may be emulated and not have a device path, and in that case this event will not be sent.

The format of the path is unspecified, it may be a device node, a sysfs path, or some other identifier. It is up to the client to identify the string provided.

This event is sent in the initial burst of events before the wp_tablet.done event.

fn done(&mut self, object: ZwpTabletV2)

tablet description events sequence complete

This event is sent immediately to signal the end of the initial burst of descriptive events. A client may consider the static description of the tablet to be complete and finalize initialization of the tablet.

fn removed(&mut self, object: ZwpTabletV2)

tablet removed event

Sent when the tablet has been removed from the system. When a tablet is removed, some tools may be removed.

When this event is received, the client must wp_tablet.destroy the object.

Loading content...

Implementors

Loading content...