Gtk.IconView.prototype.enable_model_drag_source

function enable_model_drag_source(start_button_mask:Gdk.ModifierType, targets:[Gtk.TargetEntry], actions:Gdk.DragAction):void {
    // Gjs wrapper for gtk_icon_view_enable_model_drag_source()
}

Turns icon_view into a drag source for automatic DND. Calling this method sets Gtk.reorderable to false.

Since 2.8

start_button_mask

Mask of allowed buttons to start drag

targets

the table of targets that the drag will support

actions

the bitmask of possible actions for a drag from this widget