Skip to content

zwp_pointer_gestures_v1¤

wayland.zwp_pointer_gestures_v1 ¤

Touchpad gestures

A global interface to provide semantic touchpad gestures for a given pointer.

Three gestures are currently supported: swipe, pinch, and hold. Pinch and swipe gestures follow a three-stage cycle: begin, update, end. Hold gestures follow a two-stage cycle: begin and end. All gestures are identified by a unique id.

Warning! The protocol described in this file is experimental and backward incompatible changes may be made. Backward compatible changes may be added together with the corresponding interface version bump. Backward incompatible changes are done by bumping the version number in the protocol and interface names and resetting the interface version. Once the protocol is to be declared stable, the 'z' prefix and the version number in the protocol and interface names are removed and the interface version number is reset.

Methods:

get_swipe_gesture ¤

get_swipe_gesture(pointer: wl_pointer) -> zwp_pointer_gesture_swipe_v1

Get swipe gesture

Create a swipe gesture object. See the wl_pointer_gesture_swipe interface for details.

Returns:

get_pinch_gesture ¤

get_pinch_gesture(pointer: wl_pointer) -> zwp_pointer_gesture_pinch_v1

Get pinch gesture

Create a pinch gesture object. See the wl_pointer_gesture_pinch interface for details.

Returns:

release ¤

release() -> None

Destroy the pointer gesture object

Destroy the pointer gesture object. Swipe, pinch and hold objects created via this gesture object remain valid.

get_hold_gesture ¤

get_hold_gesture(pointer: wl_pointer) -> zwp_pointer_gesture_hold_v1

Get hold gesture

Create a hold gesture object. See the wl_pointer_gesture_hold interface for details.

Returns: