:right-sidebar: True GestureRotate =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: GestureRotate(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.Gesture`, :class:`~gi.repository.Gtk.EventController`, :class:`~gi.repository.GObject.Object` ``GtkGestureRotate`` is a ``GtkGesture`` for 2-finger rotations. Whenever the angle between both handled sequences changes, the :obj:`~gi.repository.Gtk.GestureRotate.signals.angle_changed` signal is emitted. Constructors ------------ .. rst-class:: interim-class .. class:: GestureRotate :no-index: .. classmethod:: new() -> ~gi.repository.Gtk.Gesture Returns a newly created ``GtkGesture`` that recognizes 2-touch rotation gestures. Methods ------- .. rst-class:: interim-class .. class:: GestureRotate :no-index: .. method:: 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 ------- .. rst-class:: interim-class .. class:: GestureRotate.signals :no-index: .. method:: angle_changed(angle: float, angle_delta: float) -> None Emitted when the angle between both tracked points changes. :param angle: Current angle in radians :param angle_delta: Difference with the starting angle, in radians