gtk.gesture_drag

Module for GestureDrag class

Types 3

#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.

Methods
GType _gType() @property
GestureDrag self()Returns `this`, for use in `with` statements.
GestureDragGidBuilder builder()Get builder for [gtk.gesture_drag.GestureDrag] Returns: New builder object
bool getOffset(out double x, out double y)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.
bool getStartPoint(out double x, out double y)If the gesture is active, this function returns true and fills in `x` and `y` with the drag start coordinates, in window-relative coordinates.
gulong connectDragBegin(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == double))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == double))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gtk.gesture_drag.GestureDrag))) && Parameters!T.length < 4)Connect to `DragBegin` signal.
gulong connectDragEnd(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == double))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == double))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gtk.gesture_drag.GestureDrag))) && Parameters!T.length < 4)Connect to `DragEnd` signal.
gulong connectDragUpdate(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == double))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == double))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gtk.gesture_drag.GestureDrag))) && Parameters!T.length < 4)Connect to `DragUpdate` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this(gtk.widget.Widget widget)Returns a newly created #GtkGesture that recognizes drags.

Fluent builder for gtk.gesture_drag.GestureDrag

Methods
GestureDrag build()Create object from builder. Returns: New object