Function

Gtk.DragIcon.set_from_paintable

Declaration [src]

void
gtk_drag_icon_set_from_paintable (
  GdkDrag* drag,
  GdkPaintable* paintable,
  int hot_x,
  int hot_y
)

Description [src]

Creates a GtkDragIcon that shows paintable, and associates it with the drag operation.

The hotspot position on the paintable is aligned with the hotspot of the cursor.

Parameters

drag GdkDrag*
 

a GdkDrag

 Ownership is not transferred to the callee
paintable GdkPaintable*
 

a GdkPaintable to display

 Ownership is not transferred to the callee
hot_x int
 

X coordinate of the hotspot

hot_y int
 

Y coordinate of the hotspot