Gtk.Gesture_Rotate.Gtk_Gesture_Rotate is a Gtk.Gesture.Gtk_Gesture implementation able to recognize 2-finger rotations, whenever the angle between both handled sequences changes, the Gtk.Gesture_Rotate.Gtk_Gesture_Rotate::angle-changed signal is emitted.
type Cb_GObject_Gdouble_Gdouble_Void is not null access procedure
(Self : access Glib.Object.GObject_Record'Class;
Angle : Gdouble;
Angle_Delta : Gdouble);
type Cb_Gtk_Gesture_Rotate_Gdouble_Gdouble_Void is not null access procedure
(Self : access Gtk_Gesture_Rotate_Record'Class;
Angle : Gdouble;
Angle_Delta : Gdouble);
function Get_Angle_Delta
(Self : not null access Gtk_Gesture_Rotate_Record) return Gdouble
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: gtk+ 3.14
the angle delta in radians
function Get_Type return Glib.GType
type Gtk_Gesture_Rotate is access all Gtk_Gesture_Rotate_Record'Class;
function Gtk_Gesture_Rotate_New
(Widget : not null access Gtk.Widget.Gtk_Widget_Record'Class)
return Gtk_Gesture_Rotate
Returns a newly created Gtk.Gesture.Gtk_Gesture that recognizes 2-touch rotation gestures. Since: gtk+ 3.14
a Gtk.Widget.Gtk_Widget
type Gtk_Gesture_Rotate_Record is new Gtk_Gesture_Record with null record;
procedure Gtk_New
(Self : out Gtk_Gesture_Rotate;
Widget : not null access Gtk.Widget.Gtk_Widget_Record'Class)
Returns a newly created Gtk.Gesture.Gtk_Gesture that recognizes 2-touch rotation gestures. Since: gtk+ 3.14 Initialize does nothing if the object was already created with another call to Initialize* or G_New.
a Gtk.Widget.Gtk_Widget
procedure Initialize
(Self : not null access Gtk_Gesture_Rotate_Record'Class;
Widget : not null access Gtk.Widget.Gtk_Widget_Record'Class)
Returns a newly created Gtk.Gesture.Gtk_Gesture that recognizes 2-touch rotation gestures. Since: gtk+ 3.14 Initialize does nothing if the object was already created with another call to Initialize* or G_New.
a Gtk.Widget.Gtk_Widget
procedure On_Angle_Changed
(Self : not null access Gtk_Gesture_Rotate_Record;
Call : Cb_GObject_Gdouble_Gdouble_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
This signal is emitted when the angle between both tracked points changes.
Callback parameters: -- @param Angle Current angle in radians -- @param Angle_Delta Difference with the starting angle, in radians
procedure On_Angle_Changed
(Self : not null access Gtk_Gesture_Rotate_Record;
Call : Cb_Gtk_Gesture_Rotate_Gdouble_Gdouble_Void;
After : Boolean := False)
This signal is emitted when the angle between both tracked points changes.
Callback parameters: -- @param Angle Current angle in radians -- @param Angle_Delta Difference with the starting angle, in radians
Signal_Angle_Changed : constant Glib.Signal_Name := "angle-changed";
This signal is emitted when the angle between both tracked points changes.
Callback parameters: -- @param Angle Current angle in radians -- @param Angle_Delta Difference with the starting angle, in radians