GestureLongPress


Object Hierarchy:

Gtk.GestureLongPress Gtk.GestureLongPress Gtk.GestureLongPress Gtk.GestureSingle Gtk.GestureSingle Gtk.GestureSingle->Gtk.GestureLongPress Gtk.Gesture Gtk.Gesture Gtk.Gesture->Gtk.GestureSingle Gtk.EventController Gtk.EventController Gtk.EventController->Gtk.Gesture GLib.Object GLib.Object GLib.Object->Gtk.EventController

Description:

[ CCode ( type_id = "gtk_gesture_long_press_get_type ()" ) ]
public class GestureLongPress : GestureSingle

`GtkGestureLongPress` is a `GtkGesture` for long presses.

This gesture is also known as “Press and Hold”.

When the timeout is exceeded, the gesture is triggering the [[email protected]:GtkGestureLongPress:pressed] signal.

If the touchpoint is lifted before the timeout passes, or if it drifts too far of the initial press point, the [ [email protected]:GtkGestureLongPress:cancelled] signal will be emitted.

How long the timeout is before the pressed signal gets emitted is determined by the [[email protected]:gtk-long-press-time] setting. It can be modified by the [ [email protected]:delay-factor] property.


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Signals:

Inherited Members:

All known members inherited from class GLib.Object



2022 vala-language.org