Gtk.Gesture_Zoom

Entities

Tagged Types

Access Types

Constants

Subprograms

Description

Gtk.Gesture_Zoom.Gtk_Gesture_Zoom is a Gtk.Gesture.Gtk_Gesture implementation able to recognize pinch/zoom gestures, whenever the distance between both tracked sequences changes, the Gtk.Gesture_Zoom.Gtk_Gesture_Zoom::scale-changed signal is emitted to report the scale factor.

Cb_GObject_Gdouble_Void

type Cb_GObject_Gdouble_Void is not null access procedure
  (Self  : access Glib.Object.GObject_Record'Class;
   Scale : Gdouble);
Parameters
Self
Scale

Cb_Gtk_Gesture_Zoom_Gdouble_Void

type Cb_Gtk_Gesture_Zoom_Gdouble_Void is not null access procedure
  (Self  : access Gtk_Gesture_Zoom_Record'Class;
   Scale : Gdouble);
Parameters
Self
Scale

Get_Scale_Delta

function Get_Scale_Delta
   (Self : not null access Gtk_Gesture_Zoom_Record) return Gdouble

If Gesture is active, this function returns the zooming difference since the gesture was recognized (hence the starting point is considered 1:1). If Gesture is not active, 1 is returned. Since: gtk+ 3.14

Parameters
Self
Return Value

the scale delta

Get_Type

function Get_Type return Glib.GType
Return Value

Gtk_Gesture_Zoom

type Gtk_Gesture_Zoom is access all Gtk_Gesture_Zoom_Record'Class;

Gtk_Gesture_Zoom_New

function Gtk_Gesture_Zoom_New
   (Widget : not null access Gtk.Widget.Gtk_Widget_Record'Class)
    return Gtk_Gesture_Zoom

Returns a newly created Gtk.Gesture.Gtk_Gesture that recognizes zoom in/out gestures (usually known as pinch/zoom). Since: gtk+ 3.14

Parameters
Widget

a Gtk.Widget.Gtk_Widget

Return Value

Gtk_Gesture_Zoom_Record

type Gtk_Gesture_Zoom_Record is new Gtk_Gesture_Record with null record;

Gtk_New

procedure Gtk_New
   (Self   : out Gtk_Gesture_Zoom;
    Widget : not null access Gtk.Widget.Gtk_Widget_Record'Class)

Returns a newly created Gtk.Gesture.Gtk_Gesture that recognizes zoom in/out gestures (usually known as pinch/zoom). 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_Zoom_Record'Class;
    Widget : not null access Gtk.Widget.Gtk_Widget_Record'Class)

Returns a newly created Gtk.Gesture.Gtk_Gesture that recognizes zoom in/out gestures (usually known as pinch/zoom). 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_Scale_Changed

procedure On_Scale_Changed
   (Self  : not null access Gtk_Gesture_Zoom_Record;
    Call  : Cb_GObject_Gdouble_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

This signal is emitted whenever the distance between both tracked sequences changes.

Parameters
Self
Call
Slot
After

On_Scale_Changed

procedure On_Scale_Changed
   (Self  : not null access Gtk_Gesture_Zoom_Record;
    Call  : Cb_Gtk_Gesture_Zoom_Gdouble_Void;
    After : Boolean := False)

This signal is emitted whenever the distance between both tracked sequences changes.

Parameters
Self
Call
After

Signal_Scale_Changed

Signal_Scale_Changed : constant Glib.Signal_Name := "scale-changed";

This signal is emitted whenever the distance between both tracked sequences changes.