dragSetIconSurface

fnvoid dragSetIconSurface(gdk.drag_context.DragContext context, cairo.surface.Surface surface)

Sets surface as the icon for a given drag. GTK+ retains references for the arguments, and will release them when they are no longer needed.

To position the surface relative to the mouse, use [cairo.surface.Surface.setDeviceOffset] on surface. The mouse cursor will be positioned at the (0,0) coordinate of the surface.

Parameters

contextthe context for a drag (This must be called with a context for the source side of a drag)
surfacethe surface to use as icon