Compilation Units
Tagged Types
Recognizes 2-finger rotation gestures.
Whenever the angle between both handled sequences changes, the [signalGtk.GestureRotate::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
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.
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 return Gtk_Gesture_Rotate
Returns a newly created GtkGesture that recognizes 2-touch rotation gestures.
type Gtk_Gesture_Rotate_Record is new Gtk_Gesture_Record with null record;
procedure Gtk_New (Self : out Gtk_Gesture_Rotate)
Returns a newly created GtkGesture that recognizes 2-touch rotation gestures. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
procedure Initialize
(Self : not null access Gtk_Gesture_Rotate_Record'Class)
Returns a newly created GtkGesture that recognizes 2-touch rotation gestures. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
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)
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)
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";
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