package wayland

  1. Overview
  2. Docs
Pure OCaml Wayland protocol library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

wayland-2.3.tbz
sha256=10627a94f4cef97147991528fcd246f8f27ccbf3026eafdece995b53ee9468a0
sha512=8e319dc236d04cc9084bf81782497899dca12a392d649a2ac7bd1d5edc1101ebe2bc266a033e23ab9ed46a8b692018bc47005036d10872f7825f4aa4009ab825

doc/wayland.protocols/Wayland_protocols/Tablet_v2_server/Zwp_tablet_seat_v2/index.html

Module Tablet_v2_server.Zwp_tablet_seat_v2Source

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 zwp_tablet_seat_v2.tablet_added and zwp_tablet_seat_v2.tool_added events.

Sourcetype 'v t = ([ `Zwp_tablet_seat_v2 ], 'v, [ `Server ]) Wayland.Proxy.t

Version 1, 2

Sourceval pad_added : ([< `V1 | `V2 ] as 'a) t -> [[ `Zwp_tablet_pad_v2 ], 'a, [ `Server ]] Wayland.Proxy.Handler.t -> ([ `Zwp_tablet_pad_v2 ], 'a, [ `Server ]) Wayland.Proxy.t

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 zwp_tablet_seat_v2.tablet_added. However, some standalone pad devices logically attach to tablets at runtime, and the client must wait for zwp_tablet_pad_v2.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 zwp_tablet_pad_v2 interface.

Sourceval tool_added : ([< `V1 | `V2 ] as 'a) t -> [[ `Zwp_tablet_tool_v2 ], 'a, [ `Server ]] Wayland.Proxy.Handler.t -> ([ `Zwp_tablet_tool_v2 ], 'a, [ `Server ]) Wayland.Proxy.t

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 zwp_tablet_tool_v2 interface.

Sourceval tablet_added : ([< `V1 | `V2 ] as 'a) t -> [[ `Zwp_tablet_v2 ], 'a, [ `Server ]] Wayland.Proxy.Handler.t -> ([ `Zwp_tablet_v2 ], 'a, [ `Server ]) Wayland.Proxy.t

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 zwp_tablet_v2 interface.

Handlers

Note: Servers will always want to use v1.

Sourceclass virtual +'a v1 : object ... end

Handler for a proxy with version >= 1.

Sourceclass virtual +'a v2 : object ... end

Handler for a proxy with version >= 2.