DragAndDrop.checkThreshold

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.

class DragAndDrop
static
int
checkThreshold

Parameters

widget Widget

a GtkWidget

startX int

X coordinate of start of drag

startY int

Y coordinate of start of drag

currentX int

current X coordinate

currentY int

current Y coordinate

Return Value

Type: int

TRUE if the drag threshold has been passed.

Meta