Enum wayland_protocols::unstable::tablet::v2::client::zwp_tablet_seat_v2::Event
source · #[non_exhaustive]pub enum Event {
TabletAdded {
id: Main<ZwpTabletV2>,
},
ToolAdded {
id: Main<ZwpTabletToolV2>,
},
PadAdded {
id: Main<ZwpTabletPadV2>,
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
TabletAdded
Fields
id: Main<ZwpTabletV2>
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.
ToolAdded
Fields
id: Main<ZwpTabletToolV2>
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.
PadAdded
Fields
id: Main<ZwpTabletPadV2>
new pad notification
This event is sent whenever a new pad is known to the system. Typically, pads are physically attached to tablets and a pad_added event is sent immediately after the wp_tablet_seat.tablet_added. However, some standalone pad devices logically attach to tablets at runtime, and the client must wait for wp_tablet_pad.enter to know the tablet a pad is attached to.
This event only provides the object id of the pad. All further features (buttons, strips, rings) are sent through the wp_tablet_pad interface.
Trait Implementations§
source§impl MessageGroup for Event
impl MessageGroup for Event
source§const MESSAGES: &'static [MessageDesc] = _
const MESSAGES: &'static [MessageDesc] = _
§type Map = ProxyMap
type Map = ProxyMap
source§fn is_destructor(&self) -> bool
fn is_destructor(&self) -> bool
source§fn child<Meta: ObjectMetadata>(
opcode: u16,
version: u32,
meta: &Meta
) -> Option<Object<Meta>>
fn child<Meta: ObjectMetadata>( opcode: u16, version: u32, meta: &Meta ) -> Option<Object<Meta>>
Object
associated with this message if any