Gtk.GestureClick¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.GestureSingle (8), Gtk.Gesture (17), Gtk.EventController (13), GObject.Object (37)
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Gtk.GestureSingle (3), Gtk.Gesture (1), Gtk.EventController (4)
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted whenever a button or touch press happens. |
|
Emitted when a button or touch is released. |
|
Emitted whenever any time/distance threshold has been exceeded. |
|
Emitted whenever the gesture receives a release event that had no previous corresponding press. |
Fields¶
- Inherited:
Class Details¶
- class Gtk.GestureClick(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
GtkGestureClick
is aGtkGesture
implementation for clicks.It is able to recognize multiple clicks on a nearby zone, which can be listened for through the [signal`Gtk`.GestureClick::pressed] signal. Whenever time or distance between clicks exceed the GTK defaults, [signal`Gtk`.GestureClick::stopped] is emitted, and the click counter is reset.
Signal Details¶
- Gtk.GestureClick.signals.pressed(gesture_click, n_press, x, y)¶
- Signal Name:
pressed
- Flags:
- Parameters:
gesture_click (
Gtk.GestureClick
) – The object which received the signaln_press (
int
) – how many touch/button presses happened with this onex (
float
) – The X coordinate, in widget allocation coordinatesy (
float
) – The Y coordinate, in widget allocation coordinates
Emitted whenever a button or touch press happens.
- Gtk.GestureClick.signals.released(gesture_click, n_press, x, y)¶
- Signal Name:
released
- Flags:
- Parameters:
gesture_click (
Gtk.GestureClick
) – The object which received the signaln_press (
int
) – number of press that is paired with this releasex (
float
) – The X coordinate, in widget allocation coordinatesy (
float
) – The Y coordinate, in widget allocation coordinates
Emitted when a button or touch is released.
n_press will report the number of press that is paired to this event, note that [signal`Gtk`.GestureClick::stopped] may have been emitted between the press and its release, n_press will only start over at the next press.
- Gtk.GestureClick.signals.stopped(gesture_click)¶
- Signal Name:
stopped
- Flags:
- Parameters:
gesture_click (
Gtk.GestureClick
) – The object which received the signal
Emitted whenever any time/distance threshold has been exceeded.
- Gtk.GestureClick.signals.unpaired_release(gesture_click, x, y, button, sequence)¶
- Signal Name:
unpaired-release
- Flags:
- Parameters:
gesture_click (
Gtk.GestureClick
) – The object which received the signalx (
float
) – X coordinate of the eventy (
float
) – Y coordinate of the eventbutton (
int
) – Button being releasedsequence (
Gdk.EventSequence
orNone
) – Sequence being released
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.