DragContext.connectCancel

Connect to Cancel signal.

The drag and drop operation was cancelled.

This signal will only be emitted if the #GdkDragContext manages the drag and drop operation. See gdk.drag_context.DragContext.manageDnd for more information.

class DragContext
gulong
connectCancel
(
T
)
(,
Flag!"After" after = No.After
)
if (
isCallable!T &&
is(ReturnType!T == void)
&&
(
Parameters!T.length < 1 ||
(
ParameterStorageClassTuple!T[0] == ParameterStorageClass.none &&
is(Parameters!T[0] == gdk.types.DragCancelReason)
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
is(Parameters!T[1] : gdk.drag_context.DragContext)
)
)
&&
Parameters!T.length < 3
)

Parameters

callback T

signal callback delegate or function to connect

void callback(gdk.types.DragCancelReason reason, gdk.drag_context.DragContext dragContext)

reason The reason the context was cancelled (optional)

dragContext the instance the signal is connected to (optional)

after Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: gulong

Signal ID