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 [signal@Gtk.DragSource::prepare] or [signal@Gtk.DragSource::drag-begin] signal handler.

class DragSource
void
setIcon

Parameters

paintable PaintableIF

the #GdkPaintable to use as icon, or %NULL

hotX int

the hotspot X coordinate on the icon

hotY int

the hotspot Y coordinate on the icon

Meta