[][src]Struct wayland_protocols::unstable::tablet::v2::server::zwp_tablet_pad_v2::ZwpTabletPadV2

pub struct ZwpTabletPadV2(_);

Implementations

impl ZwpTabletPadV2[src]

pub fn group(&self, pad_group: &ZwpTabletPadGroupV2)[src]

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.

pub fn path(&self, path: String)[src]

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.

pub fn buttons(&self, buttons: u32)[src]

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.

pub fn done(&self)[src]

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.

pub fn button(&self, time: u32, button: u32, state: ButtonState)[src]

physical button state

Sent whenever the physical state of a button changes.

pub fn enter(&self, serial: u32, tablet: &ZwpTabletV2, surface: &WlSurface)[src]

enter event

Notification that this pad is focused on the specified surface.

pub fn leave(&self, serial: u32, surface: &WlSurface)[src]

enter event

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

pub fn removed(&self)[src]

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 AsRef<Resource<ZwpTabletPadV2>> for ZwpTabletPadV2[src]

impl Clone for ZwpTabletPadV2[src]

impl Debug for ZwpTabletPadV2[src]

impl Eq for ZwpTabletPadV2[src]

impl From<Resource<ZwpTabletPadV2>> for ZwpTabletPadV2[src]

impl From<ZwpTabletPadV2> for Resource<ZwpTabletPadV2>[src]

impl Interface for ZwpTabletPadV2[src]

type Request = Request

Set of requests associated to this interface Read more

type Event = Event

Set of events associated to this interface Read more

impl PartialEq<ZwpTabletPadV2> for ZwpTabletPadV2[src]

impl StructuralEq for ZwpTabletPadV2[src]

impl StructuralPartialEq for ZwpTabletPadV2[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.