Skip to content

Gtk.GestureRotate

class — extends Gesture

Recognizes 2-finger rotation gestures.

Whenever the angle between both handled sequences changes, the GestureRotate.angle-changed signal is emitted.

Constructors

new

@classmethod
def new(cls) -> Gesture

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

Methods

get_angle_delta

def get_angle_delta(self) -> 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

angle-changed

def on_angle_changed(self, angle: float, angle_delta: float) -> None: ...

Emitted when the angle between both tracked points changes.