DropTarget.connectDrop

Connect to Drop signal.

Emitted on the drop site when the user drops the data onto the widget.

The signal handler must determine whether the pointer 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, this handler will accept the drop. The handler is responsible for using the given value and performing the drop operation.

class DropTarget
ulong
connectDrop
(
T
)
(,
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] == gobject.value.Value)
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
is(Parameters!T[1] == double)
)
)
&&
(
Parameters!T.length < 3 ||
(
ParameterStorageClassTuple!T[2] == ParameterStorageClass.none &&
is(Parameters!T[2] == double)
)
)
&&
(
Parameters!T.length < 4 ||
(
ParameterStorageClassTuple!T[3] == ParameterStorageClass.none &&
is(Parameters!T[3] : gtk.drop_target.DropTarget)
)
)
&&
Parameters!T.length < 5
)

Parameters

callback T

signal callback delegate or function to connect

bool callback(gobject.value.Value value, double x, double y, gtk.drop_target.DropTarget dropTarget)

value the gobject.value.Value being dropped (optional)

x the x coordinate of the current pointer position (optional)

y the y coordinate of the current pointer position (optional)

dropTarget the instance the signal is connected to (optional)

Returns whether the drop was accepted at the given pointer position

after Flag!"After"

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

Return Value

Type: ulong

Signal ID