wayland::serv...ure_pinch_v1_t(3)

πŸ¦‹ wayland::server::zwp_pointer_gesture_pinch_v1_t(3) β€” a pinch gesture object πŸ¦‹

Okay bestie, welcome to the Wayland++ manual page wayland::serv...ure_pinch_v1_t(3). This is the server-side pinch gesture wrapper, and yes, it ate. πŸ’…

🌸 NAME 🌸

wayland::server::zwp_pointer_gesture_pinch_v1_t β€” a pinch gesture object. That's the whole name, and it's iconic.

✨ SYNOPSIS ✨

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

πŸ’– Public Member Functions πŸ’–

  • std::function< void()> & on_destroy () β€” destroy the pinch gesture object.
  • void begin (uint32_t serial, uint32_t time, surface_t const &surface, uint32_t fingers, bool post=true) β€” multi-finger pinch begin.
  • void update (uint32_t time, double dx, double dy, double scale, double rotation, bool post=true) β€” multi-finger pinch motion.
  • void end (uint32_t serial, uint32_t time, int32_t cancelled, bool post=true) β€” multi-finger pinch end.
  • bool proxy_has_object () const β€” Check whether this wrapper actually wraps an object.
  • void post_no_memory () const β€” post the no-memory situation to the client, as the inherited resource helper does.
  • uint32_t get_id () const β€” get the internal ID of the resource.
  • client_t get_client () const β€” get the associated client.
  • unsigned int get_version () const β€” get interface version.
  • std::string get_class () β€” get the interface name (class).

🌟 Static Public Attributes 🌟

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

🌈 Detailed Description 🌈

A pinch gesture object notifies a client about a multi-finger pinch gesture detected on an indirect input device such as a touchpad. The gesture is usually initiated by multiple fingers moving towards each other or away from each other, or by two or more fingers rotating around a logical center of gravity. 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 3313 of file wayland-server-protocol-unstable.hpp.

πŸŽ€ Member Function Documentation πŸŽ€

πŸ’« void zwp_pointer_gesture_pinch_v1_t::begin (uint32_t serial, uint32_t time, surface_t const &surface, uint32_t fingers, bool post = true)

multi-finger pinch begin. This event is sent when a multi-finger pinch gesture is detected on the device.

Parameters

  • serial β€” (no extra description in the original)
  • time β€” timestamp with millisecond granularity
  • surface β€” (no extra description in the original)
  • fingers β€” number of fingers

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


πŸ’« void zwp_pointer_gesture_pinch_v1_t::end (uint32_t serial, uint32_t time, int32_t cancelled, bool post = true)

multi-finger pinch end. This event is sent when a multi-finger pinch 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.

Parameters

  • serial β€” (no extra description in the original)
  • time β€” timestamp with millisecond granularity
  • cancelled β€” 1 if the gesture was cancelled, 0 otherwise

Definition at line 5685 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_pinch_v1_t::on_destroy ()

destroy the pinch gesture object.

Definition at line 5669 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.


πŸ’« void zwp_pointer_gesture_pinch_v1_t::update (uint32_t time, double dx, double dy, double scale, double rotation, bool post = true)

multi-finger pinch motion. This event is sent when a multi-finger pinch gesture changes the position of the logical center, the rotation or the relative scale.

The dx and dy coordinates are relative coordinates in the surface coordinate space of the logical center of the gesture.

The scale factor is an absolute scale compared to the pointer_gesture_pinch.begin event, e.g. a scale of 2 means the fingers are now twice as far apart as on pointer_gesture_pinch.begin.

The rotation is the relative angle in degrees clockwise compared to the previous pointer_gesture_pinch.begin or pointer_gesture_pinch.update event.

Parameters

  • time β€” timestamp with millisecond granularity
  • dx β€” delta x coordinate in surface coordinate space
  • dy β€” delta y coordinate in surface coordinate space
  • scale β€” scale relative to the initial finger position
  • rotation β€” angle in degrees cw relative to the previous event

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

πŸ’œ Member Data Documentation πŸ’œ

⭐ std::uint32_t wayland::server::zwp_pointer_gesture_pinch_v1_t::begin_since_version = 1 [static], [constexpr]

Minimum protocol version required for the begin function.

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


⭐ std::uint32_t wayland::server::zwp_pointer_gesture_pinch_v1_t::end_since_version = 1 [static], [constexpr]

Minimum protocol version required for the end function.

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


⭐ std::uint32_t wayland::server::zwp_pointer_gesture_pinch_v1_t::update_since_version = 1 [static], [constexpr]

Minimum protocol version required for the update function.

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

🫢 Author 🫢

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


Version 1.0.1, Fri Mar 27 2026 β€” that's the footer tea from the Wayland++ page, bestie. πŸ’–βœ¨

πŸ“¦ where this page comes from