Gtk.GestureDrag¶
class — extends GestureSingle
Recognizes drag gestures.
The drag operation itself can be tracked throughout the
GestureDrag.drag-begin,
GestureDrag.drag-update and
GestureDrag.drag-end signals, and the relevant
coordinates can be extracted through
GestureDrag.get_offset and
GestureDrag.get_start_point.
Constructors¶
new¶
Returns a newly created GtkGesture that recognizes drags.
Methods¶
get_offset¶
Gets the offset from the start point.
If 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.
get_start_point¶
Gets the point where the drag started.
If the gesture is active, this function returns True
and fills in x and y with the drag start coordinates,
in widget-relative coordinates.
Signals¶
drag-begin¶
Emitted whenever dragging starts.
drag-end¶
Emitted whenever the dragging is finished.
drag-update¶
Emitted whenever the dragging point moves.