Returns a newly created #GtkGesture that recognizes drags.
Connect to DragBegin signal.
Connect to DragEnd signal.
Connect to DragUpdate signal.
If the gesture is active, this function returns true and fills in x and y with the coordinates of the current point, as an offset to the starting drag point.
If the gesture is active, this function returns true and fills in x and y with the drag start coordinates, in window-relative coordinates.
Returns this, for use in with statements.
Get builder for gtk.gesture_drag.GestureDrag
Returns this, for use in with statements.
Get builder for gtk.gesture_single.GestureSingle
Get button property.
Set button property.
Get exclusive property.
Set exclusive property.
Get touchOnly property.
Set touchOnly property.
Returns the button number gesture listens for, or 0 if gesture reacts to any button press.
Returns the button number currently interacting with gesture, or 0 if there is none.
Returns the event sequence currently interacting with gesture. This is only meaningful if gtk.gesture.Gesture.isActive returns true.
Gets whether a gesture is exclusive. For more information, see gtk.gesture_single.GestureSingle.setExclusive.
Returns true if the gesture is only triggered by touch events.
Sets the button number gesture listens to. If non-0, every button press from a different button number will be ignored. Touch events implicitly match with button 1.
Sets whether gesture is exclusive. An exclusive gesture will only handle pointer and "pointer emulated" touch events, so at any given time, there is only one sequence able to interact with those.
If touch_only is true, gesture will only handle events of type #GDK_TOUCH_BEGIN, #GDK_TOUCH_UPDATE or #GDK_TOUCH_END. If false, mouse events will be handled too.
#GtkGestureDrag is a #GtkGesture implementation that recognizes drag operations. The drag operation itself can be tracked throught the #GtkGestureDrag::drag-begin, #GtkGestureDrag::drag-update and #GtkGestureDrag::drag-end signals, or the relevant coordinates be extracted through gtk.gesture_drag.GestureDrag.getOffset and gtk.gesture_drag.GestureDrag.getStartPoint.