Function

Gtk-3.0Gtkdrag_set_icon_widget

  • Changes the icon for drag operation to a given widget. GTK+ will not destroy the widget, so if you don’t want it to persist, you should connect to the “drag-end” signal and destroy it yourself.

    Parameters

    • context: Gdk.DragContext

      the context for a drag. (This must be called with a context for the source side of a drag)

    • widget: Gtk.Widget

      a widget to use as an icon

    • hot_x: number

      the X offset within widget of the hotspot

    • hot_y: number

      the Y offset within widget of the hotspot

    Returns void