connectPrepare

fun connectPrepare(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (x: Double, y: Double) -> <Error class: unknown class>?): <Error class: unknown class>

Emitted when a drag is about to be initiated.

It returns the GdkContentProvider to use for the drag that is about to start. The default handler for this signal returns the value of the property@Gtk.DragSource:content property, so if you set up that property ahead of time, you don't need to connect to this signal.

Parameters

connectFlags

A combination of ConnectFlags

handler

the Callback to connect. Params: x the X coordinate of the drag starting point; y the Y coordinate fo the drag starting point. Returns a GdkContentProvider