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(void* ptr, Flag!"Take" take)
this
this()

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

Members

Functions

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

Connect to DragBegin signal.

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

Connect to DragEnd signal.

connectDragUpdate
gulong 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.

self
GestureDrag self()

Returns this, for use in with statements.

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()
builder
GestureDragGidBuilder builder()

Get builder for gtk.gesture_drag.GestureDrag

Inherited Members

From GestureSingle

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
GestureSingle self()

Returns this, for use in with statements.

builder
GestureSingleGidBuilder builder()

Get builder for gtk.gesture_single.GestureSingle

button
uint button [@property getter]

Get button property.

button
uint button [@property setter]

Set button property.

exclusive
bool exclusive [@property getter]

Get exclusive property.

exclusive
bool exclusive [@property setter]

Set exclusive property.

touchOnly
bool touchOnly [@property getter]

Get touchOnly property.

touchOnly
bool touchOnly [@property setter]

Set touchOnly property.

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.