It derives from <GtkGestureSingle>.
Recognizes drag gestures.
The drag operation itself can be tracked throughout the
gesture-drag:drag-begin,
gesture-drag:drag-update
and gesture-drag:drag-end
signals, and the relevant coordinates can be extracted through
gesture-drag:get-offset and
gesture-drag:get-start-point.
Gets the offset from the start point.
If the self is active, this function returns #t and fills
in x and y with the coordinates of the current point, as an
offset to the starting drag point.
Passed: a <GtkGestureDrag>.
Returned: a boolean.
#t if the gesture is active
Returned: a real number.
X offset for the current point
Returned: a real number.
Y offset for the current point
Gets the point where the drag started.
If the self is active, this function returns #t and fills
in x and y with the drag start coordinates, in
widget-relative coordinates.
Passed: a <GtkGestureDrag>.
Returned: a boolean.
#t if the gesture is active
Returned: a real number.
X coordinate for the drag start point
Returned: a real number.
Y coordinate for the drag start point
Returns a newly created <GtkGesture> that
recognizes drags.
Returned: a <GtkGesture>.
a newly created <GtkGestureDrag>
Connect a handler with (connect object gesture-drag:drag-begin
handler). It is called as (handler self start-x start-y).
Emitted whenever dragging starts.
Passed: a <GtkGestureDrag>.
Passed: a real number.
X coordinate, relative to the widget allocation
Passed: a real number.
Y coordinate, relative to the widget allocation
Connect a handler with (connect object gesture-drag:drag-end
handler). It is called as (handler self offset-x offset-y).
Emitted whenever the dragging is finished.
Passed: a <GtkGestureDrag>.
Passed: a real number.
X offset, relative to the start point
Passed: a real number.
Y offset, relative to the start point
Connect a handler with (connect object gesture-drag:drag-update
handler). It is called as (handler self offset-x offset-y).
Emitted whenever the dragging point moves.
Passed: a <GtkGestureDrag>.
Passed: a real number.
X offset, relative to the start point
Passed: a real number.
Y offset, relative to the start point