Package org.gnome.gtk

Class GestureSingle

java.lang.Object
All Implemented Interfaces:
Proxy
Direct Known Subclasses:
DragSource, GestureClick, GestureDrag, GestureLongPress, GestureStylus, GestureSwipe

@Generated("io.github.jwharm.JavaGI") public class GestureSingle extends 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 getCurrentSequence() while the gesture is being interacted with.

By default gestures react to both GDK_BUTTON_PRIMARY and touch events. setTouchOnly(boolean) can be used to change the touch behavior. Callers may also specify a different mouse button number to interact with through setButton(int), 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 getCurrentButton().