Gtk.Widget::drag-drop

function callback(widget, context:Gdk.DragContext, x:Number, y:Number, time:Number, ):Boolean;

The ::drag-drop signal is emitted on the drop site when the user drops the data onto the widget. The signal handler must determine whether the cursor position is in a drop zone or not. If it is not in a drop zone, it returns false and no further processing is necessary. Otherwise, the handler returns true. In this case, the handler must ensure that drag_finish is called to let the source know that the drop is done. The call to drag_finish can be done either directly or in a Gtk.Widget::drag-data-received handler which gets triggered by calling Gtk.Widget.prototype.drag_get_data to receive the data for one or more of the supported targets.

widget

instance of Gtk.Widget that is emitting the signal

context

the drag context

x

the x coordinate of the current cursor position

y

the y coordinate of the current cursor position

time

the timestamp of the motion event

Returns

whether the cursor position is in a drop zone