DragAndDrop.setIconSurface

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_set_device_offset() on surface. The mouse cursor will be positioned at the (0,0) coordinate of the surface.

class DragAndDrop
void
setIconSurface

Parameters

surface Surface

the surface to use as icon

Meta