Gtk.GestureRotate

g GObject.Object GObject.Object Gtk.EventController Gtk.EventController GObject.Object->Gtk.EventController Gtk.Gesture Gtk.Gesture Gtk.EventController->Gtk.Gesture Gtk.GestureRotate Gtk.GestureRotate Gtk.Gesture->Gtk.GestureRotate

Subclasses:

None

Methods

Inherited:

Gtk.Gesture (17), Gtk.EventController (13), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_angle_delta ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

Gtk.Gesture (1), Gtk.EventController (4)

Signals

Inherited:

Gtk.Gesture (5), GObject.Object (1)

Name

Short Description

angle-changed

Emitted when the angle between both tracked points changes.

Fields

Inherited:

Gtk.Gesture (5), GObject.Object (1)

Class Details

class Gtk.GestureRotate(**kwargs)
Bases:

Gtk.Gesture

Abstract:

No

Structure:

Gtk.GestureRotateClass

GtkGestureRotate is a GtkGesture for 2-finger rotations.

Whenever the angle between both handled sequences changes, the [signal`Gtk`.GestureRotate::angle-changed] signal is emitted.

classmethod new()[source]
Returns:

a newly created GtkGestureRotate

Return type:

Gtk.Gesture

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

get_angle_delta()[source]
Returns:

the angle delta in radians

Return type:

float

Gets the angle delta in radians.

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

Signal Details

Gtk.GestureRotate.signals.angle_changed(gesture_rotate, angle, angle_delta)
Signal Name:

angle-changed

Flags:

RUN_FIRST

Parameters:
  • gesture_rotate (Gtk.GestureRotate) – The object which received the signal

  • angle (float) – Current angle in radians

  • angle_delta (float) – Difference with the starting angle, in radians

Emitted when the angle between both tracked points changes.