wayland::serve...ablet_pad_v2_t(3)
πΈ NAME πΈ
Wayland++ manual, page for wayland::server::zwp_tablet_pad_v2_t β a set of buttons, rings and strips π
No cap, bestie, this is the server-side wrapper page for a tablet pad. Itβs giving βbuttons, rings and stripsβ and we are keeping every single protocol detail because thatβs the whole point. Periodt.
β¨ SYNOPSIS β¨
#include <wayland-server-protocol-unstable.hpp>
π Public Member Functions π
std::function< void(uint32_t, std::string, uint32_t)> & on_set_feedback ()β set compositor feedbackstd::function< void()> & on_destroy ()β destroy the pad objectvoid group (bool post=true)β group announcedvoid path (std::string const &path, bool post=true)β path to the devicevoid buttons (uint32_t buttons, bool post=true)β buttons announcedvoid done (bool post=true)β pad description event sequence completevoid button (uint32_t time, uint32_t button, zwp_tablet_pad_v2_button_state const &state, bool post=true)β physical button statevoid enter (uint32_t serial, zwp_tablet_v2_t const &tablet, surface_t const &surface, bool post=true)β enter eventvoid leave (uint32_t serial, surface_t const &surface, bool post=true)β enter eventvoid removed (bool post=true)β pad removed eventbool proxy_has_object () constβ Check whether this wrapper actually wraps an object.void post_no_memory () constβ no one-liner in the synopsis, but itβs inherited and fully documented below πuint32_t get_id () constβ same vibe, inherited, docs belowclient_t get_client () constβ inherited, docs belowunsigned int get_version () constβ inherited, docs belowstd::string get_class ()β inherited, docs below
β Static Public Attributes β
static constexpr std::uint32_t group_since_version = 1β Minimum protocol version required for thegroupfunction.static constexpr std::uint32_t path_since_version = 1β Minimum protocol version required for thepathfunction.static constexpr std::uint32_t buttons_since_version = 1β Minimum protocol version required for thebuttonsfunction.static constexpr std::uint32_t done_since_version = 1β Minimum protocol version required for thedonefunction.static constexpr std::uint32_t button_since_version = 1β Minimum protocol version required for thebuttonfunction.static constexpr std::uint32_t enter_since_version = 1β Minimum protocol version required for theenterfunction.static constexpr std::uint32_t leave_since_version = 1β Minimum protocol version required for theleavefunction.static constexpr std::uint32_t removed_since_version = 1β Minimum protocol version required for theremovedfunction.
π¦ Detailed Description π¦
Okay so picture this: a set of buttons, rings and strips β thatβs the whole mood. A pad device is literally a set of buttons, rings and strips usually physically present on the tablet device itself. Some exceptions exist where the pad device is physically detached, e.g. the Wacom ExpressKey Remote. Iconic detached-pad behavior, honestly.
Pad devices have no axes that control the cursor and are generally auxiliary devices to the tool devices used on the tablet surface. So like β the pad is not out here moving your cursor, itβs the sidekick.
A pad device has a number of static characteristics, e.g. the number of rings. These capabilities are sent in an event sequence after the wp_tablet_seat.pad_added event before any actual events from this pad. This initial event sequence is terminated by a wp_tablet_pad.done event.
All pad features (buttons, rings and strips) are logically divided into groups, and all pads have at least one group. The available groups are notified through the wp_tablet_pad.group event; the compositor will emit one event per group before emitting wp_tablet_pad.done.
Groups may have multiple modes. Modes allow clients to map multiple actions to a single pad feature. Only one mode can be active per group, although different groups may have different active modes.
Definition at line 6189 of file wayland-server-protocol-unstable.hpp.
π Member Function Documentation π
π₯ void zwp_tablet_pad_v2_t::button (uint32_t time, uint32_t button, zwp_tablet_pad_v2_button_state const & state, bool post = true)
physical button state β sent whenever the physical state of a button changes.
Parameters
timeβ the time of the event with millisecond granularitybuttonβ the index of the button that changed statestate
Definition at line 6932 of file wayland-server-protocol-unstable.cpp.
π void zwp_tablet_pad_v2_t::buttons (uint32_t buttons, bool post = true)
buttons announced β sent on wp_tablet_pad initialization to announce the available buttons.
Parameters
buttonsβ the number of buttons
This event is sent in the initial burst of events before the wp_tablet_pad.done event. This event is only sent when at least one button is available.
Definition at line 6922 of file wayland-server-protocol-unstable.cpp.
β¨ void zwp_tablet_pad_v2_t::done (bool post = true)
pad description event sequence complete β this event signals the end of the initial burst of descriptive events. A client may consider the static description of the pad to be complete and finalize initialization of the pad.
Definition at line 6927 of file wayland-server-protocol-unstable.cpp.
π¦ void zwp_tablet_pad_v2_t::enter (uint32_t serial, zwp_tablet_v2_t const & tablet, surface_t const & surface, bool post = true)
enter event β notification that this pad is focused on the specified surface.
Parameters
serialβ serial number of the enter eventtabletβ the tablet the pad is attached tosurfaceβ surface the pad is focused on
Definition at line 6937 of file wayland-server-protocol-unstable.cpp.
π 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.
π void zwp_tablet_pad_v2_t::group (bool post = true)
group announced β sent on wp_tablet_pad initialization to announce available groups. One event is sent for each pad group available.
This event is sent in the initial burst of events before the wp_tablet_pad.done event. At least one group will be announced.
Definition at line 6912 of file wayland-server-protocol-unstable.cpp.
π void zwp_tablet_pad_v2_t::leave (uint32_t serial, surface_t const & surface, bool post = true)
enter event β yes, the original literally labels this one βenter eventβ too, even though itβs leave. We keep the detail, bestie π
Parameters
serialβ serial number of the leave eventsurfaceβ surface the pad is no longer focused on
Notification that this pad is no longer focused on the specified surface.
Definition at line 6942 of file wayland-server-protocol-unstable.cpp.
π«Ά std::function< void()> & zwp_tablet_pad_v2_t::on_destroy ()
destroy the pad object β destroy the wp_tablet_pad object. Objects created from this object are unaffected and should be destroyed separately.
Definition at line 6906 of file wayland-server-protocol-unstable.cpp.
π std::function< void(uint32_t, std::string, uint32_t)> & zwp_tablet_pad_v2_t::on_set_feedback ()
set compositor feedback β requests the compositor to use the provided feedback string associated with this button.
Parameters
buttonβ button indexdescriptionβ button descriptionserialβ serial of the mode switch event
This request should be issued immediately after a wp_tablet_pad_group.mode_switch event from the corresponding group is received, or whenever a button is mapped to a different action. See wp_tablet_pad_group.mode_switch for more details.
Clients are encouraged to provide context-aware descriptions for the actions associated with each button, and compositors may use this information to offer visual feedback on the button layout (e.g. on-screen displays).
Button indices start at 0. Setting the feedback string on a button that is reserved by the compositor (i.e. not belonging to any wp_tablet_pad_group) does not generate an error but the compositor is free to ignore the request.
The provided string 'description' is a UTF-8 encoded string to be associated with this ring, and is considered user-visible; general internationalization rules apply. (Yes, it says ring here β we are not fixing the originalβs wording, we are preserving the lore π)
The serial argument will be that of the last wp_tablet_pad_group.mode_switch event received for the group of this button. Requests providing other serials than the most recent one will be ignored.
Definition at line 6900 of file wayland-server-protocol-unstable.cpp.
π§ void zwp_tablet_pad_v2_t::path (std::string const & path, bool post = true)
path to the device β a system-specific device path that indicates which device is behind this wp_tablet_pad. This information may be used to gather additional information about the device, e.g. through libwacom.
Parameters
pathβ path to local device
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_pad.done event.
Definition at line 6917 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 β thatβs the original spelling, bestie, weβre not fixing it π β 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
trueif there is an underlying object,falseif this wrapper is empty
π void zwp_tablet_pad_v2_t::removed (bool post = true)
pad removed event β sent when the pad has been removed from the system. When a tablet is removed its pad(s) will be removed too.
When this event is received, the client must destroy all rings, strips and groups that were offered by this pad, and issue wp_tablet_pad.destroy for the pad itself.
Definition at line 6947 of file wayland-server-protocol-unstable.cpp.
πΈ Member Data Documentation πΈ
okay bestie, this is the part where we meet the constants β the little static constexpr besties that tell you "hey, this function only shows up starting at protocol version X." and spoiler alert: every single one of them is 1 πβ¨ they're all minimum-version bouncers and the guest list opens at version one, we love a low barrier to entry π
std::uint32_t wayland::server::zwp_tablet_pad_v2_t::button_since_version = 1β[static],[constexpr]β Minimum protocol version required for thebuttonfunction. Definition at line 6335 of filewayland-server-protocol-unstable.hpp.std::uint32_t wayland::server::zwp_tablet_pad_v2_t::buttons_since_version = 1β[static],[constexpr]β Minimum protocol version required for thebuttonsfunction. Definition at line 6308 of filewayland-server-protocol-unstable.hpp.std::uint32_t wayland::server::zwp_tablet_pad_v2_t::done_since_version = 1β[static],[constexpr]β Minimum protocol version required for thedonefunction. Definition at line 6321 of filewayland-server-protocol-unstable.hpp.std::uint32_t wayland::server::zwp_tablet_pad_v2_t::enter_since_version = 1β[static],[constexpr]β Minimum protocol version required for theenterfunction. Definition at line 6349 of filewayland-server-protocol-unstable.hpp.std::uint32_t wayland::server::zwp_tablet_pad_v2_t::group_since_version = 1β[static],[constexpr]β Minimum protocol version required for thegroupfunction. Definition at line 6270 of filewayland-server-protocol-unstable.hpp.std::uint32_t wayland::server::zwp_tablet_pad_v2_t::leave_since_version = 1β[static],[constexpr]β Minimum protocol version required for theleavefunction. Definition at line 6363 of filewayland-server-protocol-unstable.hpp.std::uint32_t wayland::server::zwp_tablet_pad_v2_t::path_since_version = 1β[static],[constexpr]β Minimum protocol version required for thepathfunction. Definition at line 6291 of filewayland-server-protocol-unstable.hpp.std::uint32_t wayland::server::zwp_tablet_pad_v2_t::removed_since_version = 1β[static],[constexpr]β Minimum protocol version required for theremovedfunction. Definition at line 6379 of filewayland-server-protocol-unstable.hpp.
ngl, the way every one of these is = 1 is giving "we didn't need to gate anything yet but we're ready for the future" energy π«Ά iconic foresight, no cap π
π Author π
Generated automatically by Doxygen for Wayland++ from the source code. like, nobody hand-wrote this, the tool did it, and honestly? slay for automation β¨
and that's a wrap on part 2, bestie!! π this page is Version 1.0.1, it says Fri Mar 27 2026 on the label, and it's the wayland::serve...ablet_pad_v2_t(3) page β go forth and gate your protocol versions responsibly π§πβ
π¦ 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