Gtk.GestureLongPress¶
- 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)
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted whenever a press moved too far, or was released before [signal`Gtk`.GestureLongPress::pressed] happened. |
|
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:
GtkGestureLongPress
is aGtkGesture
for long presses.This gesture is also known as “Press and Hold”.
When the timeout is exceeded, the gesture is triggering the [signal`Gtk`.GestureLongPress::pressed] signal.
If the touchpoint is lifted before the timeout passes, or if it drifts too far of the initial press point, the [signal`Gtk`.GestureLongPress::cancelled] signal will be emitted.
How long the timeout is before the
::pressed
signal gets emitted is determined by the [property`Gtk`.Settings:gtk-long-press-time] setting. It can be modified by the [property`Gtk`.GestureLongPress:delay-factor] property.
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
Emitted whenever a press moved too far, or was released before [signal`Gtk`.GestureLongPress::pressed] happened.
- 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
Emitted whenever a press goes unmoved/unreleased longer than what the GTK defaults tell.
Property Details¶
- Gtk.GestureLongPress.props.delay_factor¶
- Name:
delay-factor
- Type:
- Default Value:
1.0
- Flags:
Factor by which to modify the default timeout.