Function

Gtk-3.0Gtkdrag_set_icon_giconSince 3.2

  • Sets the icon for a given drag from the given icon. See the documentation for gtk_drag_set_icon_name() for more details about using icons in drag and drop.

    Parameters

    • context: Gdk.DragContext

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

    • icon: Gio.Icon
    • hot_x: number

      the X offset of the hotspot within the icon

    • hot_y: number

      the Y offset of the hotspot within the icon

    Returns void

    3.2