Class ZwpTabletSeatV2Resource
- All Implemented Interfaces:
WaylandObject
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.
-
Field Summary
FieldsFields inherited from class org.freedesktop.wayland.server.Resource
wlResourcePtr
-
Constructor Summary
ConstructorsConstructorDescriptionZwpTabletSeatV2Resource
(MemorySegment pointer) ZwpTabletSeatV2Resource
(Client client, int version, int id, ZwpTabletSeatV2Requests implementation) -
Method Summary
Modifier and TypeMethodDescriptionvoid
padAdded
(int id) new pad notificationvoid
tabletAdded
(int id) new device notificationvoid
toolAdded
(int id) a new tool has been used with a tabletMethods inherited from class org.freedesktop.wayland.server.Resource
addDestroyListener, destroy, equals, getClient, getId, getImplementation, getPointer, getVersion, hashCode, postError, postEvent, postEvent, register, unregister
-
Field Details
-
INTERFACE_NAME
- See Also:
-
-
Constructor Details
-
ZwpTabletSeatV2Resource
public ZwpTabletSeatV2Resource(Client client, int version, int id, ZwpTabletSeatV2Requests implementation) -
ZwpTabletSeatV2Resource
-
-
Method Details
-
tabletAdded
public void tabletAdded(int id) new device notificationThis 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
- the newly added graphics tablet
-
toolAdded
public void toolAdded(int id) a new tool has been used with a tabletThis 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
- the newly added tablet tool
-
padAdded
public void padAdded(int id) new pad notificationThis 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.
- Parameters:
id
- the newly added pad
-