---
name: "wayland_server_zwp_tablet_seat_v1_t"
section: "3"
platform: "linux"
package: "waylandpp-dev"
version: "1.0.0-6+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/wayland_server_zwp_tablet_seat_v1_t"
---

# wayland\_server\_zwp\_tablet\_seat\_v1\_t(3)

controller object for graphic tablet devices of a seat

## NAME

wayland::server::zwp\_tablet\_seat\_v1\_t - controller object for graphic tablet devices of a seat

## SYNOPSIS

`#include <wayland-server-protocol-unstable.hpp>`

Inherits wayland::server::resource\_t.

### Public Member Functions

std::function\< void()\> & **on\_destroy** ()\
 release the memory for the tablet seat object  void **tablet\_added** (bool post=true)\
 new device notification  void **tool\_added** (bool post=true)\
 a new tool has been used with a tablet  bool **proxy\_has\_object** () const\
 Check whether this wrapper actually wraps an object.  void **post\_no\_memory** () const\
 uint32\_t **get\_id** () const\
 client\_t **get\_client** () const\
 unsigned int **get\_version** () const\
 std::string **get\_class** ()\

### Static Public Attributes

static constexpr std::uint32\_t **tablet\_added\_since\_version** = 1\
 Minimum protocol version required for the **tablet\_added** function.  static constexpr std::uint32\_t **tool\_added\_since\_version** = 1\
 Minimum protocol version required for the **tool\_added** function.

## Detailed Description

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.

Definition at line **4041** of file **wayland-server-protocol-unstable.hpp**.

## Member Function Documentation

### std::string wayland::server::resource\_t::get\_class ()` [inherited]`

Retrieve the interface name (class) of a resource object.

**Returns**

Interface name of the resource object.

### client\_t wayland::server::resource\_t::get\_client () const` [inherited]`

Get the associated client

**Returns**

the client that owns the resource.

### uint32\_t wayland::server::resource\_t::get\_id () const` [inherited]`

Get the internal ID of the resource

**Returns**

the internal ID of the resource

### unsigned int wayland::server::resource\_t::get\_version () const` [inherited]`

Get interface version

**Returns**

Interface version this resource has been constructed with.

### std::function\< void()\> & zwp\_tablet\_seat\_v1\_t::on\_destroy ()

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.

Definition at line **6130** of file **wayland-server-protocol-unstable.cpp**.

### void wayland::server::resource\_t::post\_no\_memory () const` [inherited]`

Post 'not enough memory' error to the client

If the compositor has not enough memory to fulfill a certail request of the client, this function can be called to notify the client of this circumstance.

### bool wayland::server::resource\_t::proxy\_has\_object () const` [inherited]`

Check whether this wrapper actually wraps an object.

**Returns**

true if there is an underlying object, false if this wrapper is empty

### void zwp\_tablet\_seat\_v1\_t::tablet\_added (bool post = `true`)

new device notification

**Returns**

the newly added graphics tablet

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.

Definition at line **6136** of file **wayland-server-protocol-unstable.cpp**.

### void zwp\_tablet\_seat\_v1\_t::tool\_added (bool post = `true`)

a new tool has been used with a tablet

**Returns**

the newly added tablet tool

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.

Definition at line **6141** of file **wayland-server-protocol-unstable.cpp**.

## Member Data Documentation

### constexpr std::uint32\_t wayland::server::zwp\_tablet\_seat\_v1\_t::tablet\_added\_since\_version = 1` [static]`, ` [constexpr]`

Minimum protocol version required for the **tablet\_added** function.

Definition at line **4088** of file **wayland-server-protocol-unstable.hpp**.

### constexpr std::uint32\_t wayland::server::zwp\_tablet\_seat\_v1\_t::tool\_added\_since\_version = 1` [static]`, ` [constexpr]`

Minimum protocol version required for the **tool\_added** function.

Definition at line **4103** of file **wayland-server-protocol-unstable.hpp**.

## Author

Generated automatically by Doxygen for Wayland++ from the source code.
