Top |
GtkGestureRotate is a GtkGesture implementation able to recognize 2-finger rotations, whenever the angle between both handled sequences changes, the “angle-changed” signal is emitted.
GtkGesture *
gtk_gesture_rotate_new (GtkWidget *widget
);
Returns a newly created GtkGesture that recognizes 2-touch rotation gestures.
Since: 3.14
gdouble
gtk_gesture_rotate_get_angle_delta (GtkGestureRotate *gesture
);
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.
Since: 3.14
“angle-changed”
signalvoid user_function (GtkGestureRotate *gesture, double angle, double angle_delta, gpointer user_data)
This signal is emitted when the angle between both tracked points changes.
gesture |
the object on which the signal is emitted |
|
angle |
Current angle in radians |
|
angle_delta |
Difference with the starting angle, in radians |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First
Since: 3.14