Gtk.Gesture_Long_Press

Entities

Tagged Types

Access Types

Constants

Subprograms

Description

Gtk.Gesture_Long_Press.Gtk_Gesture_Long_Press is a Gtk.Gesture.Gtk_Gesture implementation able to recognize long presses, triggering the Gtk.Gesture_Long_Press.Gtk_Gesture_Long_Press::pressed after the timeout is exceeded.

If the touchpoint is lifted before the timeout passes, or if it drifts too far of the initial press point, the Gtk.Gesture_Long_Press.Gtk_Gesture_Long_Press::cancelled signal will be emitted.

Cb_GObject_Gdouble_Gdouble_Void

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

Cb_GObject_Void

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

Cb_Gtk_Gesture_Long_Press_Gdouble_Gdouble_Void

type Cb_Gtk_Gesture_Long_Press_Gdouble_Gdouble_Void is not null access procedure
  (Self : access Gtk_Gesture_Long_Press_Record'Class;
   X    : Gdouble;
   Y    : Gdouble);
Parameters
Self
X
Y

Cb_Gtk_Gesture_Long_Press_Void

type Cb_Gtk_Gesture_Long_Press_Void is not null access procedure
  (Self : access Gtk_Gesture_Long_Press_Record'Class);
Parameters
Self

Delay_Factor_Property

Delay_Factor_Property : constant Glib.Properties.Property_Double;

Type: Gdouble

Get_Type

function Get_Type return Glib.GType
Return Value

Gtk_Gesture_Long_Press

type Gtk_Gesture_Long_Press is access all Gtk_Gesture_Long_Press_Record'Class;

Gtk_Gesture_Long_Press_New

function Gtk_Gesture_Long_Press_New
   (Widget : not null access Gtk.Widget.Gtk_Widget_Record'Class)
    return Gtk_Gesture_Long_Press

Returns a newly created Gtk.Gesture.Gtk_Gesture that recognizes long presses. Since: gtk+ 3.14

Parameters
Widget

a Gtk.Widget.Gtk_Widget

Return Value

Gtk_Gesture_Long_Press_Record

type Gtk_Gesture_Long_Press_Record is new Gtk_Gesture_Single_Record with null record;

Gtk_New

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

Returns a newly created Gtk.Gesture.Gtk_Gesture that recognizes long presses. 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_Long_Press_Record'Class;
    Widget : not null access Gtk.Widget.Gtk_Widget_Record'Class)

Returns a newly created Gtk.Gesture.Gtk_Gesture that recognizes long presses. 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_Cancelled

procedure On_Cancelled
   (Self  : not null access Gtk_Gesture_Long_Press_Record;
    Call  : Cb_GObject_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

This signal is emitted whenever a press moved too far, or was released before Gtk.Gesture_Long_Press.Gtk_Gesture_Long_Press::pressed happened.

Parameters
Self
Call
Slot
After

On_Cancelled

procedure On_Cancelled
   (Self  : not null access Gtk_Gesture_Long_Press_Record;
    Call  : Cb_Gtk_Gesture_Long_Press_Void;
    After : Boolean := False)

This signal is emitted whenever a press moved too far, or was released before Gtk.Gesture_Long_Press.Gtk_Gesture_Long_Press::pressed happened.

Parameters
Self
Call
After

On_Pressed

procedure On_Pressed
   (Self  : not null access Gtk_Gesture_Long_Press_Record;
    Call  : Cb_GObject_Gdouble_Gdouble_Void;
    Slot  : not null access Glib.Object.GObject_Record'Class;
    After : Boolean := False)

This signal is emitted whenever a press goes unmoved/unreleased longer than what the GTK+ defaults tell.

Callback parameters: -- @param X the X coordinate where the press happened, relative to the -- widget allocation -- @param Y the Y coordinate where the press happened, relative to the -- widget allocation

Parameters
Self
Call
Slot
After

On_Pressed

procedure On_Pressed
   (Self  : not null access Gtk_Gesture_Long_Press_Record;
    Call  : Cb_Gtk_Gesture_Long_Press_Gdouble_Gdouble_Void;
    After : Boolean := False)

This signal is emitted whenever a press goes unmoved/unreleased longer than what the GTK+ defaults tell.

Callback parameters: -- @param X the X coordinate where the press happened, relative to the -- widget allocation -- @param Y the Y coordinate where the press happened, relative to the -- widget allocation

Parameters
Self
Call
After

Signal_Cancelled

Signal_Cancelled : constant Glib.Signal_Name := "cancelled";

This signal is emitted whenever a press moved too far, or was released before Gtk.Gesture_Long_Press.Gtk_Gesture_Long_Press::pressed happened.

Signal_Pressed

Signal_Pressed : constant Glib.Signal_Name := "pressed";

This signal is emitted whenever a press goes unmoved/unreleased longer than what the GTK+ defaults tell.

Callback parameters: -- @param X the X coordinate where the press happened, relative to the -- widget allocation -- @param Y the Y coordinate where the press happened, relative to the -- widget allocation