.TH "wayland::server::zwp_pointer_gesture_swipe_v1_t" 3 "Wed May 3 2023" "Version 1.0.0" "Wayland++" \" -*- nroff -*- .ad l .nh .SH NAME wayland::server::zwp_pointer_gesture_swipe_v1_t \- a swipe gesture object .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits wayland::server::resource_t\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "std::function< void()> & \fBon_destroy\fP ()" .br .RI "destroy the pointer swipe gesture object " .ti -1c .RI "void \fBbegin\fP (uint32_t serial, uint32_t time, \fBsurface_t\fP const &surface, uint32_t fingers, bool post=true)" .br .RI "multi-finger swipe begin " .ti -1c .RI "void \fBupdate\fP (uint32_t time, double dx, double dy, bool post=true)" .br .RI "multi-finger swipe motion " .ti -1c .RI "void \fBend\fP (uint32_t serial, uint32_t time, int32_t cancelled, bool post=true)" .br .RI "multi-finger swipe end " .ti -1c .RI "bool \fBproxy_has_object\fP () const" .br .RI "Check whether this wrapper actually wraps an object\&. " .ti -1c .RI "void \fBpost_no_memory\fP () const" .br .ti -1c .RI "uint32_t \fBget_id\fP () const" .br .ti -1c .RI "client_t \fBget_client\fP () const" .br .ti -1c .RI "unsigned int \fBget_version\fP () const" .br .ti -1c .RI "std::string \fBget_class\fP ()" .br .in -1c .SS "Static Public Attributes" .in +1c .ti -1c .RI "static constexpr std::uint32_t \fBbegin_since_version\fP = 1" .br .RI "Minimum protocol version required for the \fBbegin\fP function\&. " .ti -1c .RI "static constexpr std::uint32_t \fBupdate_since_version\fP = 1" .br .RI "Minimum protocol version required for the \fBupdate\fP function\&. " .ti -1c .RI "static constexpr std::uint32_t \fBend_since_version\fP = 1" .br .RI "Minimum protocol version required for the \fBend\fP function\&. " .in -1c .SH "Detailed Description" .PP a swipe gesture object A swipe gesture object notifies a client about a multi-finger swipe gesture detected on an indirect input device such as a touchpad\&. 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\&. .PP 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, how compositors prevent these situations is implementation-dependent\&. .PP 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\&. .PP Definition at line \fB3203\fP of file \fBwayland\-server\-protocol\-unstable\&.hpp\fP\&. .SH "Member Function Documentation" .PP .SS "void zwp_pointer_gesture_swipe_v1_t::begin (uint32_t serial, uint32_t time, \fBsurface_t\fP const & surface, uint32_t fingers, bool post = \fCtrue\fP)" .PP multi-finger swipe begin .PP \fBParameters\fP .RS 4 \fIserial\fP .br \fItime\fP timestamp with millisecond granularity .br \fIsurface\fP .br \fIfingers\fP number of fingers .RE .PP This event is sent when a multi-finger swipe gesture is detected on the device\&. .PP Definition at line \fB5623\fP of file \fBwayland\-server\-protocol\-unstable\&.cpp\fP\&. .SS "void zwp_pointer_gesture_swipe_v1_t::end (uint32_t serial, uint32_t time, int32_t cancelled, bool post = \fCtrue\fP)" .PP multi-finger swipe end .PP \fBParameters\fP .RS 4 \fIserial\fP .br \fItime\fP timestamp with millisecond granularity .br \fIcancelled\fP 1 if the gesture was cancelled, 0 otherwise .RE .PP 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\&. .PP 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\&. .PP Definition at line \fB5633\fP of file \fBwayland\-server\-protocol\-unstable\&.cpp\fP\&. .SS "std::string wayland::server::resource_t::get_class ()\fC [inherited]\fP" Retrieve the interface name (class) of a resource object\&. .PP \fBReturns\fP .RS 4 Interface name of the resource object\&. .RE .PP .SS "client_t wayland::server::resource_t::get_client () const\fC [inherited]\fP" Get the associated client .PP \fBReturns\fP .RS 4 the client that owns the resource\&. .RE .PP .SS "uint32_t wayland::server::resource_t::get_id () const\fC [inherited]\fP" Get the internal ID of the resource .PP \fBReturns\fP .RS 4 the internal ID of the resource .RE .PP .SS "unsigned int wayland::server::resource_t::get_version () const\fC [inherited]\fP" Get interface version .PP \fBReturns\fP .RS 4 Interface version this resource has been constructed with\&. .RE .PP .SS "std::function< void()> & zwp_pointer_gesture_swipe_v1_t::on_destroy ()" .PP destroy the pointer swipe gesture object .PP Definition at line \fB5617\fP of file \fBwayland\-server\-protocol\-unstable\&.cpp\fP\&. .SS "void wayland::server::resource_t::post_no_memory () const\fC [inherited]\fP" Post 'not enough memory' error to the client .PP 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\&. .SS "bool wayland::server::resource_t::proxy_has_object () const\fC [inherited]\fP" .PP Check whether this wrapper actually wraps an object\&. .PP \fBReturns\fP .RS 4 true if there is an underlying object, false if this wrapper is empty .RE .PP .SS "void zwp_pointer_gesture_swipe_v1_t::update (uint32_t time, double dx, double dy, bool post = \fCtrue\fP)" .PP multi-finger swipe motion .PP \fBParameters\fP .RS 4 \fItime\fP timestamp with millisecond granularity .br \fIdx\fP delta x coordinate in surface coordinate space .br \fIdy\fP delta y coordinate in surface coordinate space .RE .PP This event is sent when a multi-finger swipe gesture changes the position of the logical center\&. .PP The dx and dy coordinates are relative coordinates of the logical center of the gesture compared to the previous event\&. .PP Definition at line \fB5628\fP of file \fBwayland\-server\-protocol\-unstable\&.cpp\fP\&. .SH "Member Data Documentation" .PP .SS "constexpr std::uint32_t wayland::server::zwp_pointer_gesture_swipe_v1_t::begin_since_version = 1\fC [static]\fP, \fC [constexpr]\fP" .PP Minimum protocol version required for the \fBbegin\fP function\&. .PP Definition at line \fB3248\fP of file \fBwayland\-server\-protocol\-unstable\&.hpp\fP\&. .SS "constexpr std::uint32_t wayland::server::zwp_pointer_gesture_swipe_v1_t::end_since_version = 1\fC [static]\fP, \fC [constexpr]\fP" .PP Minimum protocol version required for the \fBend\fP function\&. .PP Definition at line \fB3286\fP of file \fBwayland\-server\-protocol\-unstable\&.hpp\fP\&. .SS "constexpr std::uint32_t wayland::server::zwp_pointer_gesture_swipe_v1_t::update_since_version = 1\fC [static]\fP, \fC [constexpr]\fP" .PP Minimum protocol version required for the \fBupdate\fP function\&. .PP Definition at line \fB3266\fP of file \fBwayland\-server\-protocol\-unstable\&.hpp\fP\&. .SH "Author" .PP Generated automatically by Doxygen for Wayland++ from the source code\&.