Function

Gdkdrag_begin_for_device

Declaration [src]

GdkDragContext*
gdk_drag_begin_for_device (
  GdkWindow* window,
  GdkDevice* device,
  GList* targets
)

Description [src]

Starts a drag and creates a new drag context for it.

This function is called by the drag source.

Parameters

window GdkWindow
 

The source window for this drag.

 The data is owned by the caller of the function.
device GdkDevice
 

The device that controls this drag.

 The data is owned by the caller of the function.
targets A list of GdkAtom
 

The offered targets, as list of GdkAtoms.

 The data is owned by the caller of the function.

Return value

Returns: GdkDragContext
 

A newly created GdkDragContext.

 The caller of the function takes ownership of the data, and is responsible for freeing it.