Function

Gtkdrag_set_icon_surface

Declaration [src]

void
gtk_drag_set_icon_surface (
  GdkDragContext* context,
  cairo_surface_t* surface
)

Description [src]

Sets surface as the icon for a given drag. GTK+ retains references for the arguments, and will release them when they are no longer needed.

To position the surface relative to the mouse, use cairo_surface_set_device_offset() on surface. The mouse cursor will be positioned at the (0,0) coordinate of the surface.

Parameters

context

Type: GdkDragContext

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

The data is owned by the caller of the function.
surface

Type: cairo_surface_t

The surface to use as icon.

The data is owned by the caller of the function.