Gtk.GestureRotate¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Gesture (19), Gtk.EventController (5), GObject.Object (37)
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
---|---|
This signal is emitted when the angle between both tracked points changes. |
Fields¶
- Inherited:
Class Details¶
- class Gtk.GestureRotate(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Gtk.GestureRotate
is aGtk.Gesture
implementation able to recognize 2-finger rotations, whenever the angle between both handled sequences changes, theGtk.GestureRotate
::angle-changed
signal is emitted.- classmethod new(widget)[source]¶
- Parameters:
widget (
Gtk.Widget
) – aGtk.Widget
- Returns:
a newly created
Gtk.GestureRotate
- Return type:
Returns a newly created
Gtk.Gesture
that recognizes 2-touch rotation gestures.New in version 3.14.
Signal Details¶
- Gtk.GestureRotate.signals.angle_changed(gesture_rotate, angle, angle_delta)¶
- Signal Name:
angle-changed
- Flags:
- Parameters:
gesture_rotate (
Gtk.GestureRotate
) – The object which received the signalangle (
float
) – Current angle in radiansangle_delta (
float
) – Difference with the starting angle, in radians
This signal is emitted when the angle between both tracked points changes.
New in version 3.14.