Gtk.GestureLongPress¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.GestureSingle (8), Gtk.Gesture (19), Gtk.EventController (5), GObject.Object (37)
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Gtk.GestureSingle (3), Gtk.Gesture (2), Gtk.EventController (2)
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Factor by which to modify the default timeout |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
This signal is emitted whenever a press moved too far, or was released before |
|
This signal is emitted whenever a press goes unmoved/unreleased longer than what the GTK+ defaults tell. |
Fields¶
- Inherited:
Class Details¶
- class Gtk.GestureLongPress(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Gtk.GestureLongPress
is aGtk.Gesture
implementation able to recognize long presses, triggering theGtk.GestureLongPress
::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.GestureLongPress
::cancelled
signal will be emitted.- classmethod new(widget)[source]¶
- Parameters:
widget (
Gtk.Widget
) – aGtk.Widget
- Returns:
a newly created
Gtk.GestureLongPress
- Return type:
Returns a newly created
Gtk.Gesture
that recognizes long presses.New in version 3.14.
Signal Details¶
- Gtk.GestureLongPress.signals.cancelled(gesture_long_press)¶
- Signal Name:
cancelled
- Flags:
- Parameters:
gesture_long_press (
Gtk.GestureLongPress
) – The object which received the signal
This signal is emitted whenever a press moved too far, or was released before
Gtk.GestureLongPress
::pressed
happened.New in version 3.14.
- Gtk.GestureLongPress.signals.pressed(gesture_long_press, x, y)¶
- Signal Name:
pressed
- Flags:
- Parameters:
gesture_long_press (
Gtk.GestureLongPress
) – The object which received the signalx (
float
) – the X coordinate where the press happened, relative to the widget allocationy (
float
) – the Y coordinate where the press happened, relative to the widget allocation
This signal is emitted whenever a press goes unmoved/unreleased longer than what the GTK+ defaults tell.
New in version 3.14.