Method

GtkGestureDragget_offset

Declaration [src]

gboolean
gtk_gesture_drag_get_offset (
  GtkGestureDrag* gesture,
  gdouble* x,
  gdouble* y
)

Description [src]

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.

Available since:3.14

Parameters

x

Type: gdouble*

X offset for the current point.

The argument will be set by the function.
The argument can be set to NULL.
y

Type: gdouble*

Y offset for the current point.

The argument will be set by the function.
The argument can be set to NULL.

Return value

Type: gboolean

TRUE if the gesture is active.