GestureSingle


Object Hierarchy:

Gtk.GestureSingle Gtk.GestureSingle Gtk.GestureSingle 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_single_get_type ()" ) ]
public class GestureSingle : Gesture

`GtkGestureSingle` is a `GtkGestures` subclass optimized for singe-touch and mouse gestures.

Under interaction, these gestures stick to the first interacting sequence, which is accessible through [ [email protected]_current_sequence] while the gesture is being interacted with.

By default gestures react to both gdk_button_primary and touch events. [ [email protected]_touch_only] can be used to change the touch behavior. Callers may also specify a different mouse button number to interact with through [[email protected]_button], or react to any mouse button by setting it to 0. While the gesture is active, the button being currently pressed can be known through [[email protected]_current_button].


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class GLib.Object



2022 vala-language.org