DragSource.setIcon

Sets a paintable to use as icon during DND operations.

The hotspot coordinates determine the point on the icon that gets aligned with the hotspot of the cursor.

If paintable is null, a default icon is used.

This function can be called before a drag is started, or in a gtk.drag_source.DragSource.prepare or signalGtk.DragSource::drag-begin signal handler.

class DragSource
void
setIcon

Parameters

paintable gdk.paintable.Paintable

the gdk.paintable.Paintable to use as icon

hotX int

the hotspot X coordinate on the icon

hotY int

the hotspot Y coordinate on the icon