drag_set_icon_gicon
function drag_set_icon_gicon(context:Gdk.DragContext, icon:Gio.Icon, hot_x:Number, hot_y:Number):void { // Gjs wrapper for gtk_drag_set_icon_gicon() }
Sets the icon for a given drag from the given icon. See the documentation for drag_set_icon_name for more details about using icons in drag and drop.
Since 3.2
- context
the context for a drag. (This must be called with a context for the source side of a drag)
- icon
a Gio.Icon
- hot_x
the X offset of the hotspot within the icon
- hot_y
the Y offset of the hotspot within the icon