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 gint
 

X coordinate of start of drag.

start_y gint
 

Y coordinate of start of drag.

current_x gint
 

Current X coordinate.

current_y gint
 

Current Y coordinate.

Return value

Returns: gboolean
 

TRUE if the drag threshold has been passed.