package wayland

  1. Overview
  2. Docs
Pure OCaml Wayland protocol library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

wayland-2.2.tbz
sha256=0f882060a4cfe9424ed397676b8e2aaa931d84610beb29cb2ec9c355d1819625
sha512=847781a3d274da7463ad1a2e46bada3663b8dee08fa576ad787e7ba35cb0f39a3e1a0e6e9729db2f643885a35ae32ece0358c5897d31b68907cad44f1b26af31

doc/wayland.protocols/Wayland_protocols/Tablet_v2_client/Zwp_tablet_v2/class-v1/index.html

Class Zwp_tablet_v2.v1Source

Handler for a proxy with version >= 1.

constraint 'a = [< `V1 ]
method private virtual on_name : [> `V1 ] t -> name:string -> unit

Tablet device name.

A descriptive name for the tablet device.

If the device has no descriptive name, this event is not sent.

This event is sent in the initial burst of events before the wp_tablet.done event.

method private virtual on_id : [> `V1 ] t -> vid:int32 -> pid:int32 -> unit

Tablet device USB vendor/product id.

The USB vendor and product IDs for the tablet device.

If the device has no USB vendor/product ID, this event is not sent. This can happen for virtual devices or non-USB devices, for instance.

This event is sent in the initial burst of events before the wp_tablet.done event.

method private virtual on_path : [> `V1 ] t -> path:string -> unit

Path to the device.

A system-specific device path that indicates which device is behind this wp_tablet. This information may be used to gather additional information about the device, e.g. through libwacom.

A device may have more than one device path. If so, multiple wp_tablet.path events are sent. A device may be emulated and not have a device path, and in that case this event will not be sent.

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.done event.

method private virtual on_done : [> `V1 ] t -> unit

Tablet description events sequence complete.

This event is sent immediately to signal the end of the initial burst of descriptive events. A client may consider the static description of the tablet to be complete and finalize initialization of the tablet.

method private virtual on_removed : [> `V1 ] t -> unit

Tablet removed event.

Sent when the tablet has been removed from the system. When a tablet is removed, some tools may be removed.

When this event is received, the client must wp_tablet.destroy the object.

method min_version : int32
OCaml

Innovation. Community. Security.