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.
type Cb_GObject_Gdouble_Gdouble_Void is not null access procedure
(Self : access Glib.Object.GObject_Record'Class;
X : Gdouble;
Y : Gdouble);
type Cb_GObject_Void is not null access procedure
(Self : access Glib.Object.GObject_Record'Class);
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);
type Cb_Gtk_Gesture_Long_Press_Void is not null access procedure
(Self : access Gtk_Gesture_Long_Press_Record'Class);
Delay_Factor_Property : constant Glib.Properties.Property_Double;
Type: Gdouble
function Get_Type return Glib.GType
type Gtk_Gesture_Long_Press is access all Gtk_Gesture_Long_Press_Record'Class;
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
a Gtk.Widget.Gtk_Widget
type Gtk_Gesture_Long_Press_Record is new Gtk_Gesture_Single_Record with null record;
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.
a Gtk.Widget.Gtk_Widget
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.
a Gtk.Widget.Gtk_Widget
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.
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.
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
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
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 : 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