GestureRotate

class GestureRotate(**properties: Any)

Superclasses: Gesture, EventController, Object

GtkGestureRotate is a GtkGesture for 2-finger rotations.

Whenever the angle between both handled sequences changes, the angle_changed signal is emitted.

Constructors

class GestureRotate
classmethod new() Gesture

Returns a newly created GtkGesture that recognizes 2-touch rotation gestures.

Methods

class GestureRotate
get_angle_delta() float

Gets the angle delta in radians.

If gesture is active, this function returns the angle difference in radians since the gesture was first recognized. If gesture is not active, 0 is returned.

Signals

class GestureRotate.signals
angle_changed(angle: float, angle_delta: float) None

Emitted when the angle between both tracked points changes.

Parameters:
  • angle – Current angle in radians

  • angle_delta – Difference with the starting angle, in radians