GestureDrag

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

The drag operation itself can be tracked throughout the signal@Gtk.GestureDrag::drag-begin, signal@Gtk.GestureDrag::drag-update and signal@Gtk.GestureDrag::drag-end signals, and the relevant coordinates can be extracted through gtk.gesture_drag.GestureDrag.getOffset and gtk.gesture_drag.GestureDrag.getStartPoint.

Constructors

this
this()

Returns a newly created gtk.gesture.Gesture that recognizes drags.

Members

Functions

connectDragBegin
ulong connectDragBegin(T callback, Flag!"After" after)

Connect to DragBegin signal.

connectDragEnd
ulong connectDragEnd(T callback, Flag!"After" after)

Connect to DragEnd signal.

connectDragUpdate
ulong connectDragUpdate(T callback, Flag!"After" after)

Connect to DragUpdate signal.

getOffset
bool getOffset(double x, double y)

Gets the offset from the start point.

getStartPoint
bool getStartPoint(double x, double y)

Gets the point where the drag started.

Inherited Members

From GestureSingle

getButton
uint getButton()

Returns the button number gesture listens for.

getCurrentButton
uint getCurrentButton()

Returns the button number currently interacting with gesture, or 0 if there is none.

getCurrentSequence
gdk.event_sequence.EventSequence getCurrentSequence()

Returns the event sequence currently interacting with gesture.

getExclusive
bool getExclusive()

Gets whether a gesture is exclusive.

getTouchOnly
bool getTouchOnly()

Returns true if the gesture is only triggered by touch events.

setButton
void setButton(uint button)

Sets the button number gesture listens to.

setExclusive
void setExclusive(bool exclusive)

Sets whether gesture is exclusive.

setTouchOnly
void setTouchOnly(bool touchOnly)

Sets whether to handle only touch events.