wayland::serve...ture_hold_v1_t(3)
π NAME π
okay so this is the Wayland++ manual page for wayland::serve...ture_hold_v1_t(3) β and the full class name is wayland::server::zwp_pointer_gesture_hold_v1_t, aka a hold gesture object. slay, letβs get into it π
β¨ SYNOPSIS β¨
#include <wayland-server-protocol-unstable.hpp>
π Public Member Functions
std::function< void()> & on_destroy ()β destroy the hold gesture objectvoid begin (uint32_t serial, uint32_t time, surface_t const &surface, uint32_t fingers, bool post=true)β multi-finger hold beginbool can_begin () constβ Check whether thebeginfunction is available with the currently bound version of the protocol.void end (uint32_t serial, uint32_t time, int32_t cancelled, bool post=true)β multi-finger hold endbool can_end () constβ Check whether theendfunction is available with the currently bound version of the protocol.bool proxy_has_object () constβ Check whether this wrapper actually wraps an object.void 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 begin_since_version = 3β Minimum protocol version required for thebeginfunction.static constexpr std::uint32_t end_since_version = 3β Minimum protocol version required for theendfunction.
π¦ Detailed Description π¦
a hold gesture object. no cap, thatβs the whole vibe.
A hold gesture object notifies a client about a single- or multi-finger hold gesture detected on an indirect input device such as a touchpad. The gesture is usually initiated by one or more fingers being held down without significant movement. The precise conditions of when such a gesture is detected are implementation-dependent. iykyk, that part is very βask your compositor.β
In particular, this gesture may be used to cancel kinetic scrolling. obsessed with that use case honestly π«Ά
A hold gesture consists of two stages: begin and end. Unlike pinch and swipe there is no update stage. There cannot be multiple simultaneous hold, pinch or swipe gestures on a same pointer/seat, how compositors prevent these situations is implementation-dependent. literally the protocol said βone at a time, bestie.β
A gesture may be cancelled by the compositor or the hardware. Clients should not consider performing permanent or irreversible actions until the end of a gesture has been received. this is the important safety tea β β do not do anything permanent before end, fr fr.
Definition at line 3433 of file wayland-server-protocol-unstable.hpp.
π Member Function Documentation π
π«Ά void zwp_pointer_gesture_hold_v1_t::begin (uint32_t serial, uint32_t time, surface_t const & surface, uint32_t fingers, bool post = true)
multi-finger hold begin.
Parameters
serialtimeβ timestamp with millisecond granularitysurfacefingersβ number of fingers
This event is sent when a hold gesture is detected on the device.
Definition at line 5727 of file wayland-server-protocol-unstable.cpp.
π«Ά bool zwp_pointer_gesture_hold_v1_t::can_begin () const
Check whether the begin function is available with the currently bound version of the protocol.
Definition at line 5732 of file wayland-server-protocol-unstable.cpp.
π«Ά bool zwp_pointer_gesture_hold_v1_t::can_end () const
Check whether the end function is available with the currently bound version of the protocol.
Definition at line 5742 of file wayland-server-protocol-unstable.cpp.
π«Ά void zwp_pointer_gesture_hold_v1_t::end (uint32_t serial, uint32_t time, int32_t cancelled, bool post = true)
multi-finger hold end.
Parameters
serialtimeβ timestamp with millisecond granularitycancelledβ 1 if the gesture was cancelled, 0 otherwise
This event is sent when a hold gesture ceases to be valid. This may happen when the holding fingers are lifted or the gesture is cancelled, for example if the fingers move past an implementation-defined threshold, the finger count changes or the hold gesture changes into a different type of gesture.
When a gesture is cancelled, the client may need to undo state changes caused by this gesture. What causes a gesture to be cancelled is implementation-dependent.
Definition at line 5737 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.
π«Ά std::function< void()> & zwp_pointer_gesture_hold_v1_t::on_destroy ()
destroy the hold gesture object.
Definition at line 5721 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.
πΈ Member Data Documentation πΈ
std::uint32_t wayland::server::zwp_pointer_gesture_hold_v1_t::begin_since_version = 3[static],[constexpr]β Minimum protocol version required for thebeginfunction.
Definition at line 3477 of file wayland-server-protocol-unstable.hpp.
std::uint32_t wayland::server::zwp_pointer_gesture_hold_v1_t::end_since_version = 3[static],[constexpr]β Minimum protocol version required for theendfunction.
Definition at line 3504 of file wayland-server-protocol-unstable.hpp.
π«Ά Author π«Ά
Generated automatically by Doxygen for Wayland++ from the source code.
cute little sign-off tea π: this was generated automatically by Doxygen for Wayland++ from the source code, Version 1.0.1, dated Fri Mar 27 2026, with footer tag 1wayland::serve...ture_hold_v1_t(3). byeee bestie, go hold some gestures 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