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.GestureLongPressis a- Gtk.Gestureimplementation able to recognize long presses, triggering the- Gtk.GestureLongPress- ::pressedafter 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- ::cancelledsignal will be emitted.- classmethod new(widget)[source]¶
- Parameters:
- widget ( - Gtk.Widget) – a- Gtk.Widget
- Returns:
- a newly created - Gtk.GestureLongPress
- Return type:
 - Returns a newly created - Gtk.Gesturethat 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- ::pressedhappened.- 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 signal
- x ( - float) – the X coordinate where the press happened, relative to the widget allocation
- y ( - 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.