Gtk.GestureRotate


Gtk.GestureRotate — Rotate gesture

Object Hierarchy:

    GObject
    ╰── Gtk.EventController
        ╰── Gtk.Gesture
            ╰── Gtk.GestureRotate

Functions:

Description:

Gtk.GestureRotate is a GtkGesture implementation able to recognize 2-finger rotations, whenever the angle between both handled sequences changes, the Gtk.GestureRotate::angle-changed signal is emitted.


Function Details:

new()

new (widget:Gtk.Widget) -> Gtk.Gesture

Returns a newly created Gtk.Gesture that recognizes 2-touchrotation gestures.

  • Returns: a newly created Gtk.GestureRotate

  • Since: 3.14


get_angle_delta()

get_angle_delta (self) -> float

If gesture is active, this function returns the angle differencein radians since the gesture was first recognized. If gesture isnot active, 0 is returned.

  • Returns: the angle delta in radians

  • Since: 3.14


results matching ""

    No results matching ""