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
GestureDragGidBuilder builder() static nothrowGet builder for [gtk.gesture_drag.GestureDrag] Returns: New builder objectbool getOffset(out double x, out double y) nothrowIf 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) nothrowIf 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) nothrowConnect 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) nothrowConnect 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) nothrowConnect to `DragUpdate` signal.Constructors
this(gtk.widget.Widget widget)Returns a newly created #GtkGesture that recognizes drags.Fluent builder implementation template for gtk.gesture_drag.GestureDrag
Fluent builder for gtk.gesture_drag.GestureDrag
Methods