Gtk.Gesture_Rotate

Entities

Tagged Types

Access Types

Constants

Subprograms

Description

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.

Cb_GObject_Gdouble_Gdouble_Void

type Cb_GObject_Gdouble_Gdouble_Void is not null access procedure
  (Self        : access Glib.Object.GObject_Record'Class;
   Angle       : Gdouble;
   Angle_Delta : Gdouble);
Parameters
Self
Angle
Angle_Delta

Cb_Gtk_Gesture_Rotate_Gdouble_Gdouble_Void

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);
Parameters
Self
Angle
Angle_Delta

Get_Angle_Delta

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

Parameters
Self
Return Value

the angle delta in radians

Get_Type

function Get_Type return Glib.GType
Return Value

Gtk_Gesture_Rotate

type Gtk_Gesture_Rotate is access all Gtk_Gesture_Rotate_Record'Class;

Gtk_Gesture_Rotate_New

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

Parameters
Widget

a Gtk.Widget.Gtk_Widget

Return Value

Gtk_Gesture_Rotate_Record

type Gtk_Gesture_Rotate_Record is new Gtk_Gesture_Record with null record;

Gtk_New

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.

Parameters
Self
Widget

a Gtk.Widget.Gtk_Widget

Initialize

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.

Parameters
Self
Widget

a Gtk.Widget.Gtk_Widget

On_Angle_Changed

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

Parameters
Self
Call
Slot
After

On_Angle_Changed

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

Parameters
Self
Call
After

Signal_Angle_Changed

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