DragSource.connectDragCancel
gulong connectDragCancel(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.Drag)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == gdk.types.DragCancelReason)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gtk.drag_source.DragSource)))
&& Parameters!T.length < 4)Connect to DragCancel signal.
Emitted on the drag source when a drag has failed.
The signal handler may handle a failed drag operation based on the type of error. It should return true if the failure has been handled and the default "drag operation failed" animation should not be shown.
Parameters
callback | signal callback delegate or function to connect bool callback(gdk.drag.Drag drag, gdk.types.DragCancelReason reason, gtk.drag_source.DragSource dragSource) drag the [gdk.drag.Drag] object (optional) reason information on why the drag failed (optional) dragSource the instance the signal is connected to (optional) Returns true if the failed drag operation has been already handled |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID