zwp_tablet_seat_v1¤
wayland.zwp_tablet_seat_v1 ¤
Controller object for graphic tablet devices of a seat
An object that provides access to the graphics tablets available on this seat. After binding to this interface, the compositor sends a set of wp_tablet_seat.tablet_added and wp_tablet_seat.tool_added events.
Methods:
-
destroy
–Release the memory for the tablet seat object
-
on_tablet_added
–New device notification.
-
on_tool_added
–A new tool has been used with a tablet.
events
tablet_added ¤
tablet_added(id: zwp_tablet_v1) -> None
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.
Parameters:
-
id
¤zwp_tablet_v1
) –The newly added graphics tablet
tool_added ¤
tool_added(id: zwp_tablet_tool_v1) -> None
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.
Parameters:
-
id
¤zwp_tablet_tool_v1
) –The newly added tablet tool
destroy ¤
destroy() -> None
Release the memory for the tablet seat object
Destroy the wp_tablet_seat object. Objects created from this object are unaffected and should be destroyed separately.
on_tablet_added ¤
on_tablet_added(id: zwp_tablet_v1) -> None
New device notification.
Override to handle wayland.zwp_tablet_seat_v1.events.tablet_added
.
on_tool_added ¤
on_tool_added(id: zwp_tablet_tool_v1) -> None
A new tool has been used with a tablet.
Override to handle wayland.zwp_tablet_seat_v1.events.tool_added
.