[][src]Trait wayland_protocols::unstable::tablet::v1::client::zwp_tablet_seat_v1::EventHandler

pub trait EventHandler {
    fn tablet_added(
        &mut self,
        object: ZwpTabletSeatV1,
        id: NewProxy<ZwpTabletV1>
    ) { ... }
fn tool_added(
        &mut self,
        object: ZwpTabletSeatV1,
        id: NewProxy<ZwpTabletToolV1>
    ) { ... } }

An interface for handling events.

Provided methods

fn tablet_added(&mut self, object: ZwpTabletSeatV1, id: NewProxy<ZwpTabletV1>)

new device notification

This event is sent whenever a new tablet becomes available on this seat. This event only provides the object id of the tablet, any static information about the tablet (device name, vid/pid, etc.) is sent through the wp_tablet interface.

fn tool_added(&mut self, object: ZwpTabletSeatV1, id: NewProxy<ZwpTabletToolV1>)

a new tool has been used with a tablet

This event is sent whenever a tool that has not previously been used with a tablet comes into use. This event only provides the object id of the tool; any static information about the tool (capabilities, type, etc.) is sent through the wp_tablet_tool interface.

Loading content...

Implementors

Loading content...