wayland::serve...wp_tablet_v2_t(3)
π NAME π
bestie, this is the manual page for wayland::server::zwp_tablet_v2_t β it's the graphics tablet device situation, and yes it's part of the Wayland++ manual. π
β¨ SYNOPSIS β¨
#include <wayland-server-protocol-unstable.hpp>
πΈ Public Member Functions πΈ
std::function< void()> & on_destroy ()β destroys the tablet object, okurrr π«Άvoid name (std::string const &name, bool post=true)β the tablet device's namevoid id (uint32_t vid, uint32_t pid, bool post=true)β the tablet device's USB vendor/product idvoid path (std::string const &path, bool post=true)β the path to the devicevoid done (bool post=true)β the tablet description events sequence is complete, we're done here β¨void removed (bool post=true)β the tablet removed eventbool proxy_has_object () constβ checks whether this wrapper actually wraps an objectvoid post_no_memory () constuint32_t get_id () constclient_t get_client () constunsigned int get_version () conststd::string get_class ()
π¦ Static Public Attributes π¦
static constexpr std::uint32_t name_since_version = 1β the minimum protocol version required for thenamefunctionstatic constexpr std::uint32_t id_since_version = 1β the minimum protocol version required for theidfunctionstatic constexpr std::uint32_t path_since_version = 1β the minimum protocol version required for thepathfunctionstatic constexpr std::uint32_t done_since_version = 1β the minimum protocol version required for thedonefunctionstatic constexpr std::uint32_t removed_since_version = 1β the minimum protocol version required for theremovedfunction
π Detailed Description π
graphics tablet device
okay so the wp_tablet interface represents one graphics tablet device, periodt. The tablet interface itself does not generate events β literally none, it's giving silent main character energy π β all events are generated by wp_tablet_tool objects when they're in proximity above a tablet.
A tablet has a bunch of static characteristics, like the device name and the pid/vid. These capabilities get sent in an event sequence after the wp_tablet_seat.tablet_added event. That initial event sequence is terminated by a wp_tablet.done event. slay. π
Definition at line 5506 of file wayland-server-protocol-unstable.hpp.
π₯ Member Function Documentation π₯
void zwp_tablet_v2_t::done (bool post = true)
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. You're all caught up bestie, go initialize β¨
Definition at line 6658 of file wayland-server-protocol-unstable.cpp.
std::string wayland::server::resource_t::get_class () [inherited]
Retrieves 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]
Gets the associated client.
Returns the client that owns the resource.
uint32_t wayland::server::resource_t::get_id () const [inherited]
Gets 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.
void zwp_tablet_v2_t::id (uint32_t vid, uint32_t pid, bool post = true)
tablet device USB vendor/product id
Parameters
vidβ USB vendor idpidβ USB product id
This event is sent in the initial burst of events before the wp_tablet.done event. iykyk π«Ά
Definition at line 6648 of file wayland-server-protocol-unstable.cpp.
void zwp_tablet_v2_t::name (std::string const & name, bool post = true)
tablet device name
Parameters
nameβ the device name
This event is sent in the initial burst of events before the wp_tablet.done event.
Definition at line 6643 of file wayland-server-protocol-unstable.cpp.
std::function< void()> & zwp_tablet_v2_t::on_destroy ()
destroy the tablet object β this destroys the client's resource for this tablet object. bye bestie π
Definition at line 6637 of file wayland-server-protocol-unstable.cpp.
void zwp_tablet_v2_t::path (std::string const & path, bool post = true)
path to the device
Parameters
pathβ path to local 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. (obsessed with that tbh π§)
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 at all, and in that case this event will not be sent β no path, no problem π
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. (yes that's on you, no cap π)
This event is sent in the initial burst of events before the wp_tablet.done event.
Definition at line 6653 of file wayland-server-protocol-unstable.cpp.
void wayland::server::resource_t::post_no_memory () const [inherited]
Posts a "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. (yes, "certail" is literally how it's spelled in the source, we don't make the rules π)
bool wayland::server::resource_t::proxy_has_object () const [inherited]
Checks whether this wrapper actually wraps an object. vibe check for wrappers basically β
Returns true if there is an underlying object, false if this wrapper is empty
void zwp_tablet_v2_t::removed (bool post = true)
tablet removed event β sent when the tablet has been removed from the system. When a tablet is removed, some tools may be removed too.
π¨ heads up bestie: when this event is received, the client must wp_tablet.destroy the object. Not optional. Not a suggestion. must. π
Definition at line 6663 of file wayland-server-protocol-unstable.cpp.
π Member Data Documentation π
std::uint32_t wayland::server::zwp_tablet_v2_t::done_since_version = 1
[static], [constexpr]
Minimum protocol version required for the done function.
Definition at line 5603 of file wayland-server-protocol-unstable.hpp.
std::uint32_t wayland::server::zwp_tablet_v2_t::id_since_version = 1
[static], [constexpr]
Minimum protocol version required for the id function.
Definition at line 5564 of file wayland-server-protocol-unstable.hpp.
std::uint32_t wayland::server::zwp_tablet_v2_t::name_since_version = 1
[static], [constexpr]
Minimum protocol version required for the name function.
Definition at line 5550 of file wayland-server-protocol-unstable.hpp.
std::uint32_t wayland::server::zwp_tablet_v2_t::path_since_version = 1
[static], [constexpr]
Minimum protocol version required for the path function.
Definition at line 5589 of file wayland-server-protocol-unstable.hpp.
std::uint32_t wayland::server::zwp_tablet_v2_t::removed_since_version = 1
[static], [constexpr]
Minimum protocol version required for the removed function.
Definition at line 5618 of file wayland-server-protocol-unstable.hpp.
π Author π
Generated automatically by Doxygen for Wayland++ from the source code. (the robots wrote it, not me, but it ate fr fr π₯)
β¨ that's a wrap bestie β¨ this page is from Version 1.0.1, dated Fri Mar 27 2026, and it's the wayland::serve...wp_tablet_v2_t(3) page in the Wayland++ manual β go forth and tablet, you've got this ππ¦πΈ
π¦ 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