gtk.gesture_drag

Module for [GestureDrag] class

Types 3

gtk.gesture_drag.GestureDrag is a gtk.gesture.Gesture implementation for drags.

The drag operation itself can be tracked throughout the gtk.gesture_drag.GestureDrag.dragBegin, gtk.gesture_drag.GestureDrag.dragUpdate and gtk.gesture_drag.GestureDrag.dragEnd signals, and the relevant coordinates can be extracted through gtk.gesture_drag.GestureDrag.getOffset and gtk.gesture_drag.GestureDrag.getStartPoint.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
GestureDrag self() nothrowReturns `this`, for use in `with` statements.
GestureDragGidBuilder builder() static nothrowGet builder for [gtk.gesture_drag.GestureDrag] Returns: New builder object
bool getOffset(out double x, out double y) nothrowGets the offset from the start point.
bool getStartPoint(out double x, out double y) nothrowGets the point where the drag started.
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(void * ptr, Flag!"Take" take)
this()Returns a newly created [gtk.gesture.Gesture] that recognizes drags. Returns: a newly created [gtk.gesture_drag.GestureDrag]

Fluent builder for gtk.gesture_drag.GestureDrag

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