Method

GtkWidgetdrag_check_threshold

Declaration [src]

gboolean
gtk_drag_check_threshold (
  GtkWidget* widget,
  gint start_x,
  gint start_y,
  gint current_x,
  gint current_y
)

Description [src]

Checks to see if a mouse drag starting at (start_x, start_y) and ending at (current_x, current_y) has passed the GTK+ drag threshold, and thus should trigger the beginning of a drag-and-drop operation.

Parameters

start_x

Type: gint

X coordinate of start of drag.

start_y

Type: gint

Y coordinate of start of drag.

current_x

Type: gint

Current X coordinate.

current_y

Type: gint

Current Y coordinate.

Return value

Type: gboolean

TRUE if the drag threshold has been passed.