Widget.connectDragDataGet

Connect to DragDataGet signal.

The ::drag-data-get signal is emitted on the drag source when the drop site requests the data which is dragged. It is the responsibility of the signal handler to fill data with the data in the format which is indicated by info. See gtk.selection_data.SelectionData.set and gtk.selection_data.SelectionData.setText.

class Widget
gulong
connectDragDataGet
(
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.drag_context.DragContext)
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
)
)
&&
(
Parameters!T.length < 3 ||
(
ParameterStorageClassTuple!T[2] == ParameterStorageClass.none &&
is(Parameters!T[2] == uint)
)
)
&&
(
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
)

Parameters

callback T

signal callback delegate or function to connect

void callback(gdk.drag_context.DragContext context, gtk.selection_data.SelectionData data, uint info, uint time, gtk.widget.Widget widget)

context the drag context (optional)

data the #GtkSelectionData to be filled with the dragged data (optional)

info the info that has been registered with the target in the #GtkTargetList (optional)

time the timestamp at which the data was requested (optional)

widget 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