[][src]Enum wayland_protocols::unstable::tablet::v2::server::zwp_tablet_pad_v2::Event

pub enum Event {
    Group {
        pad_group: Resource<ZwpTabletPadGroupV2>,
    },
    Path {
        path: String,
    },
    Buttons {
        buttons: u32,
    },
    Done,
    Button {
        time: u32,
        button: u32,
        state: ButtonState,
    },
    Enter {
        serial: u32,
        tablet: Resource<ZwpTabletV2>,
        surface: Resource<WlSurface>,
    },
    Leave {
        serial: u32,
        surface: Resource<WlSurface>,
    },
    Removed,
}

Variants

Group

group announced

Sent on wp_tablet_pad initialization to announce available groups. One event is sent for each pad group available.

This event is sent in the initial burst of events before the wp_tablet_pad.done event. At least one group will be announced.

Fields of Group

pad_group: Resource<ZwpTabletPadGroupV2>
Path

path to the device

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

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_pad.done event.

Fields of Path

path: String
Buttons

buttons announced

Sent on wp_tablet_pad initialization to announce the available buttons.

This event is sent in the initial burst of events before the wp_tablet_pad.done event. This event is only sent when at least one button is available.

Fields of Buttons

buttons: u32
Done

pad description event sequence complete

This event signals the end of the initial burst of descriptive events. A client may consider the static description of the pad to be complete and finalize initialization of the pad.

Button

physical button state

Sent whenever the physical state of a button changes.

Fields of Button

time: u32button: u32state: ButtonState
Enter

enter event

Notification that this pad is focused on the specified surface.

Fields of Enter

serial: u32tablet: Resource<ZwpTabletV2>surface: Resource<WlSurface>
Leave

enter event

Notification that this pad is no longer focused on the specified surface.

Fields of Leave

serial: u32surface: Resource<WlSurface>
Removed

pad removed event

Sent when the pad has been removed from the system. When a tablet is removed its pad(s) will be removed too.

When this event is received, the client must destroy all rings, strips and groups that were offered by this pad, and issue wp_tablet_pad.destroy the pad itself.

Trait Implementations

impl MessageGroup for Event[src]

type Map = ResourceMap

The wrapper type for ObjectMap allowing the mapping of Object and NewId arguments to the object map during parsing. Read more

Auto Trait Implementations

impl Send for Event

impl Sync for Event

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]