DropTarget.connectEnter

Connect to Enter signal.

Emitted on the drop site when the pointer enters the widget.

It can be used to set up custom highlighting.

class DropTarget
ulong
connectEnter
(
T
)
(,
Flag!"After" after = No.After
)
if (
isCallable!T &&
is(ReturnType!T == gdk.types.DragAction)
&&
(
Parameters!T.length < 1 ||
(
ParameterStorageClassTuple!T[0] == ParameterStorageClass.none &&
is(Parameters!T[0] == double)
)
)
&&
(
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] : gtk.drop_target.DropTarget)
)
)
&&
Parameters!T.length < 4
)

Parameters

callback T

signal callback delegate or function to connect

gdk.types.DragAction callback(double x, double y, gtk.drop_target.DropTarget dropTarget)

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 Preferred action for this drag operation or 0 if dropping is not supported at the current x,y location.

after Flag!"After"

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

Return Value

Type: ulong

Signal ID