Recognizes click gestures.
It is able to recognize multiple clicks on a nearby zone, which can be listened for through the [signalGtk.GestureClick::pressed] signal. Whenever time or distance between clicks exceed the GTK defaults, [signalGtk.GestureClick::stopped] is emitted, and the click counter is reset.
type Cb_GObject_Gdouble_Gdouble_Guint_Gdk_Event_Sequence_Or_Null_Void is not null access procedure
(Self : access Glib.Object.GObject_Record'Class;
X : Gdouble;
Y : Gdouble;
Button : Guint;
Sequence : Gdk.Event.Gdk_Event_Sequence);
type Cb_GObject_Gint_Gdouble_Gdouble_Void is not null access procedure
(Self : access Glib.Object.GObject_Record'Class;
N_Press : Glib.Gint;
X : Gdouble;
Y : Gdouble);
type Cb_GObject_Void is not null access procedure
(Self : access Glib.Object.GObject_Record'Class);
type Cb_Gtk_Gesture_Click_Gdouble_Gdouble_Guint_Gdk_Event_Sequence_Or_Null_Void is not null access procedure
(Self : access Gtk_Gesture_Click_Record'Class;
X : Gdouble;
Y : Gdouble;
Button : Guint;
Sequence : Gdk.Event.Gdk_Event_Sequence);
type Cb_Gtk_Gesture_Click_Gint_Gdouble_Gdouble_Void is not null access procedure
(Self : access Gtk_Gesture_Click_Record'Class;
N_Press : Glib.Gint;
X : Gdouble;
Y : Gdouble);
type Cb_Gtk_Gesture_Click_Void is not null access procedure
(Self : access Gtk_Gesture_Click_Record'Class);
function Get_Type return Glib.GType
type Gtk_Gesture_Click is access all Gtk_Gesture_Click_Record'Class;
function Gtk_Gesture_Click_New return Gtk_Gesture_Click
Returns a newly created GtkGesture that recognizes single and multiple presses.
type Gtk_Gesture_Click_Record is new Gtk_Gesture_Single_Record with null record;
procedure Gtk_New (Self : out Gtk_Gesture_Click)
Returns a newly created GtkGesture that recognizes single and multiple presses. 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_Click_Record'Class)
Returns a newly created GtkGesture that recognizes single and multiple presses. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
procedure On_Pressed
(Self : not null access Gtk_Gesture_Click_Record;
Call : Cb_GObject_Gint_Gdouble_Gdouble_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
Emitted whenever a button or touch press happens.
Callback parameters: -- @param N_Press how many touch/button presses happened with this one -- @param X The X coordinate, in widget allocation coordinates -- @param Y The Y coordinate, in widget allocation coordinates
procedure On_Pressed
(Self : not null access Gtk_Gesture_Click_Record;
Call : Cb_Gtk_Gesture_Click_Gint_Gdouble_Gdouble_Void;
After : Boolean := False)
Emitted whenever a button or touch press happens.
Callback parameters: -- @param N_Press how many touch/button presses happened with this one -- @param X The X coordinate, in widget allocation coordinates -- @param Y The Y coordinate, in widget allocation coordinates
procedure On_Released
(Self : not null access Gtk_Gesture_Click_Record;
Call : Cb_GObject_Gint_Gdouble_Gdouble_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
Emitted when a button or touch is released.
N_Press will report the number of press that is paired to this event, note that [signalGtk.GestureClick::stopped] may have been emitted between the press and its release, N_Press will only start over at the next press.
Callback parameters: -- @param N_Press number of press that is paired with this release -- @param X The X coordinate, in widget allocation coordinates -- @param Y The Y coordinate, in widget allocation coordinates
procedure On_Released
(Self : not null access Gtk_Gesture_Click_Record;
Call : Cb_Gtk_Gesture_Click_Gint_Gdouble_Gdouble_Void;
After : Boolean := False)
Emitted when a button or touch is released.
N_Press will report the number of press that is paired to this event, note that [signalGtk.GestureClick::stopped] may have been emitted between the press and its release, N_Press will only start over at the next press.
Callback parameters: -- @param N_Press number of press that is paired with this release -- @param X The X coordinate, in widget allocation coordinates -- @param Y The Y coordinate, in widget allocation coordinates
procedure On_Stopped
(Self : not null access Gtk_Gesture_Click_Record;
Call : Cb_GObject_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
Emitted whenever any time/distance threshold has been exceeded.
procedure On_Stopped
(Self : not null access Gtk_Gesture_Click_Record;
Call : Cb_Gtk_Gesture_Click_Void;
After : Boolean := False)
Emitted whenever any time/distance threshold has been exceeded.
procedure On_Unpaired_Release
(Self : not null access Gtk_Gesture_Click_Record;
Call : Cb_GObject_Gdouble_Gdouble_Guint_Gdk_Event_Sequence_Or_Null_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
Emitted whenever the gesture receives a release event that had no previous corresponding press.
Due to implicit grabs, this can only happen on situations where input is grabbed elsewhere mid-press or the pressed widget voluntarily relinquishes its implicit grab.
Callback parameters: -- @param X X coordinate of the event -- @param Y Y coordinate of the event -- @param Button Button being released -- @param Sequence Sequence being released
procedure On_Unpaired_Release
(Self : not null access Gtk_Gesture_Click_Record;
Call : Cb_Gtk_Gesture_Click_Gdouble_Gdouble_Guint_Gdk_Event_Sequence_Or_Null_Void;
After : Boolean := False)
Emitted whenever the gesture receives a release event that had no previous corresponding press.
Due to implicit grabs, this can only happen on situations where input is grabbed elsewhere mid-press or the pressed widget voluntarily relinquishes its implicit grab.
Callback parameters: -- @param X X coordinate of the event -- @param Y Y coordinate of the event -- @param Button Button being released -- @param Sequence Sequence being released
Signal_Pressed : constant Glib.Signal_Name := "pressed";
Emitted whenever a button or touch press happens.
Callback parameters: -- @param N_Press how many touch/button presses happened with this one -- @param X The X coordinate, in widget allocation coordinates -- @param Y The Y coordinate, in widget allocation coordinates
Signal_Released : constant Glib.Signal_Name := "released";
Emitted when a button or touch is released.
N_Press will report the number of press that is paired to this event, note that [signalGtk.GestureClick::stopped] may have been emitted between the press and its release, N_Press will only start over at the next press.
Callback parameters: -- @param N_Press number of press that is paired with this release -- @param X The X coordinate, in widget allocation coordinates -- @param Y The Y coordinate, in widget allocation coordinates
Signal_Stopped : constant Glib.Signal_Name := "stopped";
Emitted whenever any time/distance threshold has been exceeded.
Signal_Unpaired_Release : constant Glib.Signal_Name := "unpaired-release";
Emitted whenever the gesture receives a release event that had no previous corresponding press.
Due to implicit grabs, this can only happen on situations where input is grabbed elsewhere mid-press or the pressed widget voluntarily relinquishes its implicit grab.
Callback parameters: -- @param X X coordinate of the event -- @param Y Y coordinate of the event -- @param Button Button being released -- @param Sequence Sequence being released