wayland::serv...ure_swipe_v1_t(3)
π NAME π
okay so bestie, welcome to wayland::server::zwp_pointer_gesture_swipe_v1_t β literally just a swipe gesture object. that's it, that's the whole vibe. this is a page from the Wayland++ docs, so like, hi, you're in the right place π«Ά
β¨ SYNOPSIS β¨
#include <wayland-server-protocol-unstable.hpp>
πΈ Public Member Functions
std::function< void()> & on_destroy ()β destroy the pointer swipe gesture object. bye bestie πvoid begin (uint32_t serial, uint32_t time, surface_t const &surface, uint32_t fingers, bool post=true)β multi-finger swipe begin, the opening actvoid update (uint32_t time, double dx, double dy, bool post=true)β multi-finger swipe motion, the middle part where things actually movevoid end (uint32_t serial, uint32_t time, int32_t cancelled, bool post=true)β multi-finger swipe end, closing creditsbool proxy_has_object () constβ Check whether this wrapper actually wraps an object.void post_no_memory () constβ no description on this one in the docs, she's mysterious, respect it πuint32_t get_id () constβ get the IDclient_t get_client () constβ get the clientunsigned int get_version () constβ get the versionstd::string get_class ()β get the class
π Static Public Attributes
static constexpr std::uint32_t begin_since_version = 1β Minimum protocol version required for thebeginfunction.static constexpr std::uint32_t update_since_version = 1β Minimum protocol version required for theupdatefunction.static constexpr std::uint32_t end_since_version = 1β Minimum protocol version required for theendfunction.
π¦ DETAILED DESCRIPTION π¦
a swipe gesture object
so like, a swipe gesture object notifies a client about a multi-finger swipe gesture detected on an indirect input device such as a touchpad. ngl the gesture is usually initiated by multiple fingers moving in the same direction, but once initiated the direction may change. the precise conditions of when such a gesture is detected are implementation-dependent β i.e. don't @ me, it's up to whoever built the compositor β¨
a gesture consists of three stages: begin, update (optional) and end. there cannot be multiple simultaneous hold, pinch or swipe gestures on a same pointer/seat, and how compositors prevent these situations is implementation-dependent. yes, she's monogamous, one gesture 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.
π¨ fr fr do NOT commit to anything permanent mid-gesture. wait for the end event. that's the whole rule. periodt.
Definition at line 3204 of file wayland-server-protocol-unstable.hpp.
π MEMBER FUNCTION DOCUMENTATION π
π void zwp_pointer_gesture_swipe_v1_t::begin (uint32_t serial, uint32_t time, surface_t const & surface, uint32_t fingers, bool post = true)
multi-finger swipe begin
Parameters
- serial β the serial, iconic, no notes
- time β timestamp with millisecond granularity
- surface β the surface, the stage where this all goes down
- fingers β number of fingers π«Ά
This event is sent when a multi-finger swipe gesture is detected on the device.
Definition at line 5623 of file wayland-server-protocol-unstable.cpp.
π void zwp_pointer_gesture_swipe_v1_t::end (uint32_t serial, uint32_t time, int32_t cancelled, bool post = true)
multi-finger swipe end
Parameters
- serial β the serial again
- time β timestamp with millisecond granularity
- cancelled β
1if the gesture was cancelled,0otherwise
This event is sent when a multi-finger swipe gesture ceases to be valid. This may happen when one or more fingers are lifted or the gesture is cancelled.
When a gesture is cancelled, the client should undo state changes caused by this gesture. What causes a gesture to be cancelled is implementation-dependent.
π cancelled?? undoing the state changes. it's giving "the swipe didn't work out, reverse everything".
Definition at line 5633 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_swipe_v1_t::on_destroy ()
destroy the pointer swipe gesture object
Definition at line 5617 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.
yes, "certail" is exactly how it's spelled in the original docs, i'm not fixing it, she's perfect π
π 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_pointer_gesture_swipe_v1_t::update (uint32_t time, double dx, double dy, bool post = true)
multi-finger swipe motion
Parameters
- time β timestamp with millisecond granularity
- dx β delta x coordinate in surface coordinate space
- dy β delta y coordinate in surface coordinate space
This event is sent when a multi-finger swipe gesture changes the position of the logical center.
The dx and dy coordinates are relative coordinates of the logical center of the gesture compared to the previous event.
Definition at line 5628 of file wayland-server-protocol-unstable.cpp.
β MEMBER DATA DOCUMENTATION β
π std::uint32_t wayland::server::zwp_pointer_gesture_swipe_v1_t::begin_since_version = 1 [static], [constexpr]
Minimum protocol version required for the begin function.
Definition at line 3249 of file wayland-server-protocol-unstable.hpp.
π std::uint32_t wayland::server::zwp_pointer_gesture_swipe_v1_t::end_since_version = 1 [static], [constexpr]
Minimum protocol version required for the end function.
Definition at line 3287 of file wayland-server-protocol-unstable.hpp.
π std::uint32_t wayland::server::zwp_pointer_gesture_swipe_v1_t::update_since_version = 1 [static], [constexpr]
Minimum protocol version required for the update function.
Definition at line 3267 of file wayland-server-protocol-unstable.hpp.
π AUTHOR π
Generated automatically by Doxygen for Wayland++ from the source code. not a human, a machine, and honestly? she ate π€π
β¨ that's the whole page bestie β¨ this was Version 1.0.1, dated Fri Mar 27 2026 β mwah, go write some gestures, ily ππ¦π
π¦ 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