logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

wayland::server::zwp_pointer_gesture_swipe_v1_t - a swipe gesture object

Author

       Generated automatically by Doxygen for Wayland++ from the source code.

Version 1.0.0                                Wed May 1 2024 17wayland::server::zwp_pointer_gesture_swipe_v1_t(3)

Detailed Description

       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.

       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.

       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.

       Definition at line 3203 of file wayland-server-protocol-unstable.hpp.

Member Data Documentation

constexprstd::uint32_twayland::server::zwp_pointer_gesture_swipe_v1_t::begin_since_version=1[static],[constexpr]
       Minimum protocol version required for the begin function.

       Definition at line 3248 of file wayland-server-protocol-unstable.hpp.

   constexprstd::uint32_twayland::server::zwp_pointer_gesture_swipe_v1_t::end_since_version=1[static],[constexpr]
       Minimum protocol version required for the end function.

       Definition at line 3286 of file wayland-server-protocol-unstable.hpp.

   constexprstd::uint32_twayland::server::zwp_pointer_gesture_swipe_v1_t::update_since_version=1[static],[constexpr]
       Minimum protocol version required for the update function.

       Definition at line 3266 of file wayland-server-protocol-unstable.hpp.

Member Function Documentation

voidzwp_pointer_gesture_swipe_v1_t::begin(uint32_tserial,uint32_ttime,surface_tconst&surface,uint32_tfingers,boolpost=true)
       multi-finger swipe begin

       Parametersserialtime timestamp with millisecond granularity
           surfacefingers 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.

   voidzwp_pointer_gesture_swipe_v1_t::end(uint32_tserial,uint32_ttime,int32_tcancelled,boolpost=true)
       multi-finger swipe end

       Parametersserialtime timestamp with millisecond granularity
           cancelled 1 if the gesture was cancelled, 0 otherwise

       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.

       Definition at line 5633 of file wayland-server-protocol-unstable.cpp.

   std::stringwayland::server::resource_t::get_class()[inherited]
       Retrieve the interface name (class) of a resource object.

       Returns
           Interface name of the resource object.

   client_twayland::server::resource_t::get_client()const[inherited]
       Get the associated client

       Returns
           the client that owns the resource.

   uint32_twayland::server::resource_t::get_id()const[inherited]
       Get the internal ID of the resource

       Returns
           the internal ID of the resource

   unsignedintwayland::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.

   voidwayland::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.

   boolwayland::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

   voidzwp_pointer_gesture_swipe_v1_t::update(uint32_ttime,doubledx,doubledy,boolpost=true)
       multi-finger swipe motion

       Parameterstime 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.

Name

       wayland::server::zwp_pointer_gesture_swipe_v1_t - a swipe gesture object

Synopsis

       #include <wayland-server-protocol-unstable.hpp>

       Inherits wayland::server::resource_t.

   PublicMemberFunctions
       std::function< void()> & on_destroy ()
           destroy the pointer swipe gesture object
       void begin (uint32_t serial, uint32_t time, surface_t const &surface, uint32_t fingers, bool post=true)
           multi-finger swipe begin
       void update (uint32_t time, double dx, double dy, bool post=true)
           multi-finger swipe motion
       void end (uint32_t serial, uint32_t time, int32_t cancelled, bool post=true)
           multi-finger swipe end
       bool proxy_has_object () const
           Check whether this wrapper actually wraps an object.
       void post_no_memory () const
       uint32_t get_id () const
       client_t get_client () const
       unsigned int get_version () const
       std::string get_class ()

   StaticPublicAttributes
       static constexpr std::uint32_t begin_since_version = 1
           Minimum protocol version required for the begin function.
       static constexpr std::uint32_t update_since_version = 1
           Minimum protocol version required for the update function.
       static constexpr std::uint32_t end_since_version = 1
           Minimum protocol version required for the end function.

See Also