wayland::serv...blet_seat_v2_t(3)
okay bestie π welcome to the Wayland++ manual page for wayland::serv...blet_seat_v2_t(3) β yes, the header is a lil truncated, but the actual class is wayland::server::zwp_tablet_seat_v2_t, and we are going to get into it. β¨
πΈ NAME πΈ
wayland::server::zwp_tablet_seat_v2_t β controller object for graphic tablet devices of a seat. That's the whole vibe: it's the controller object for graphic tablet devices of a seat. no cap π
π¦ SYNOPSIS π¦
include this header, bestie:
#include <wayland-server-protocol-unstable.hpp>
π 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.void pad_added (bool post=true)β new pad notification.bool proxy_has_object () constβ Check whether this wrapper actually wraps an object.void post_no_memory () constβ the synopsis just drops the signature here, no extra one-liner.uint32_t get_id () constβ synopsis just lists the signature.client_t get_client () constβ synopsis just lists the signature.unsigned int get_version () constβ synopsis just lists the signature.std::string get_class ()β synopsis just lists the signature.
π§ Static Public Attributes π§
static constexpr std::uint32_t tablet_added_since_version = 1β Minimum protocol version required for thetablet_addedfunction.static constexpr std::uint32_t tool_added_since_version = 1β Minimum protocol version required for thetool_addedfunction.static constexpr std::uint32_t pad_added_since_version = 1β Minimum protocol version required for thepad_addedfunction.
β¨ Detailed Description β¨
Again for the people in the back: controller object for graphic tablet devices of a seat. This object gives you 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. slay β¨
Definition at line 4856 of file wayland-server-protocol-unstable.hpp.
π Member Function Documentation π
okay so these are the functions, in the exact order the page gives them. Some are inherited from wayland::server::resource_t, some are the tablet-seat-specific ones. let's go π«Ά
std::string wayland::server::resource_t::get_class () [inherited]
- What it does: 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]
- What it does: Get the associated client.
- Returns: the client that owns the resource.
uint32_t wayland::server::resource_t::get_id () const [inherited]
- What it does: Get the internal ID of the resource.
- Returns: the internal ID of the resource.
unsigned int wayland::server::resource_t::get_version () const [inherited]
- What it does: Get interface version.
- Returns: Interface version this resource has been constructed with.
std::function< void()> & zwp_tablet_seat_v2_t::on_destroy ()
- What it does: release the memory for the tablet seat object. Destroy the
wp_tablet_seatobject. Objects created from this object are unaffected and should be destroyed separately. - Definition: line
6435of filewayland-server-protocol-unstable.cpp.
void zwp_tablet_seat_v2_t::pad_added (bool post = true)
- What it does: new pad notification.
- Returns: the newly added pad.
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 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.
- Definition: line
6451of filewayland-server-protocol-unstable.cpp.
void wayland::server::resource_t::post_no_memory () const [inherited]
- What it does: Post "not enough memory" error to the client. If the compositor has not enough memory to fulfill a request from the client, this function can be called to notify the client of this circumstance.
bool wayland::server::resource_t::proxy_has_object () const [inherited]
- What it does: Check whether this wrapper actually wraps an object.
- Returns:
trueif there is an underlying object,falseif this wrapper is empty.
void zwp_tablet_seat_v2_t::tablet_added (bool post = true)
- What it does: 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: line
6441of filewayland-server-protocol-unstable.cpp.
void zwp_tablet_seat_v2_t::tool_added (bool post = true)
- What it does: 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: line
6446of filewayland-server-protocol-unstable.cpp.
π Member Data Documentation π
std::uint32_t wayland::server::zwp_tablet_seat_v2_t::pad_added_since_version = 1 [static], [constexpr]
- Minimum protocol version required for the
pad_addedfunction. - Definition: line
4939of filewayland-server-protocol-unstable.hpp.
std::uint32_t wayland::server::zwp_tablet_seat_v2_t::tablet_added_since_version = 1 [static], [constexpr]
- Minimum protocol version required for the
tablet_addedfunction. - Definition: line
4903of filewayland-server-protocol-unstable.hpp.
std::uint32_t wayland::server::zwp_tablet_seat_v2_t::tool_added_since_version = 1 [static], [constexpr]
- Minimum protocol version required for the
tool_addedfunction. - Definition: line
4918of filewayland-server-protocol-unstable.hpp.
π Author π
Generated automatically by Doxygen for Wayland++ from the source code. (So don't come for me about the original skeleton β the robot made it, I just added the sparkle π )
Version 1.0.1 Β· Fri Mar 27 2026 β and yeah, the footer has a lil 13 hanging out at the end, because manpage footers are chaotic. That's the sign-off, bestie: Wayland++, version 1.0.1, dated Fri Mar 27 2026. Now go forth and seat those tablets πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: waylandpp-dev 1.0.1-2 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms