Method

GtkGestureSwipeget_velocity

Declaration [src]

gboolean
gtk_gesture_swipe_get_velocity (
  GtkGestureSwipe* gesture,
  gdouble* velocity_x,
  gdouble* velocity_y
)

Description [src]

If the gesture is recognized, this function returns TRUE and fill in velocity_x and velocity_y with the recorded velocity, as per the last event(s) processed.

Available since:3.14

Parameters

velocity_x

Type: gdouble*

Return value for the velocity in the X axis, in pixels/sec.

The argument will be set by the function.
velocity_y

Type: gdouble*

Return value for the velocity in the Y axis, in pixels/sec.

The argument will be set by the function.

Return value

Type: gboolean

Whether velocity could be calculated.