Widget.connectDragDrop

gulong connectDragDrop(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == bool) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gdk.drag_context.DragContext))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == int))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] == int))) && (Parameters!T.length < 4 || (ParameterStorageClassTuple!T[3] == ParameterStorageClass.none && is(Parameters!T[3] == uint))) && (Parameters!T.length < 5 || (ParameterStorageClassTuple!T[4] == ParameterStorageClass.none && is(Parameters!T[4] : gtk.widget.Widget))) && Parameters!T.length < 6)

Connect to DragDrop signal.

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 [gtk.global.dragFinish] is called to let the source know that the drop is done. The call to [gtk.global.dragFinish] can be done either directly or in a #GtkWidget::drag-data-received handler which gets triggered by calling [gtk.widget.Widget.dragGetData] to receive the data for one or more of the supported targets.

Parameters

callbacksignal callback delegate or function to connect bool callback(gdk.drag_context.DragContext context, int x, int y, uint time, gtk.widget.Widget widget) context the drag context (optional) x the x coordinate of the current cursor position (optional) y the y coordinate of the current cursor position (optional) time the timestamp of the motion event (optional) widget the instance the signal is connected to (optional) Returns whether the cursor position is in a drop zone
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID