Gtk.GestureLongPress


Gtk.GestureLongPress — "Press and Hold" gesture

Object Hierarchy:

    GObject
    ╰── Gtk.EventController
        ╰── Gtk.Gesture
            ╰── Gtk.GestureSingle
                ╰── Gtk.GestureLongPress

Functions:

  • new (widget:Gtk.Widget) -> Gtk.Gesture

Signals:

  • “cancelled” (gesture, user_data)
  • “pressed” (gesture, x, y, user_data)

Description:

Gtk.GestureLongPress is a GtkGesture implementation able to recognize long presses, triggering the Gtk.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.


Function Details:

new()

new (widget:Gtk.Widget) -> Gtk.Gesture

Returns a newly created Gtk.Gesture that recognizes long presses.

  • Returns: a newly created Gtk.GestureLongPress

  • Since: 3.14


results matching ""

    No results matching ""