[][src]Module wayland_raw_protocol_bindings::client::tablet_unstable_v1::zwp_tablet_tool_v1

a physical tablet tool

An object that represents a physical tool that has been, or is currently in use with a tablet in this seat. Each wp_tablet_tool object stays valid until the client destroys it; the compositor reuses the wp_tablet_tool object to indicate that the object's respective physical tool has come into proximity of a tablet again.

A wp_tablet_tool object's relation to a physical tool depends on the tablet's ability to report serial numbers. If the tablet supports this capability, then the object represents a specific physical tool and can be identified even when used on multiple tablets.

A tablet tool has a number of static characteristics, e.g. tool type, hardware_serial and capabilities. These capabilities are sent in an event sequence after the wp_tablet_seat.tool_added event before any actual events from this tool. This initial event sequence is terminated by a wp_tablet_tool.done event.

Tablet tool events are grouped by wp_tablet_tool.frame events. Any events received before a wp_tablet_tool.frame event should be considered part of the same hardware state change.

Enums

_type

a physical tool type

button_state

physical button state

capability

capability flags for a tool

error
zwp_tablet_tool_v1

Statics

zwp_tablet_tool_v1_requests

C-representation of the messages of this interface, for interop

zwp_tablet_tool_v1_events

C-representation of the messages of this interface, for interop

zwp_tablet_tool_v1_interface

C representation of this interface, for interop

Traits

zwp_tablet_tool_v1_listener

An interface for handling events.

Functions

zwp_tablet_tool_v1_set_user_data
zwp_tablet_tool_v1_get_user_data
zwp_tablet_tool_v1_get_version
zwp_tablet_tool_v1_add_listener
zwp_tablet_tool_v1_add_rust_listener
zwp_tablet_tool_v1_set_cursor

set the tablet tool's surface

zwp_tablet_tool_v1_destroy

destroy the tool object