Function

Gdkdrag_begin_from_point

Declaration [src]

GdkDragContext*
gdk_drag_begin_from_point (
  GdkWindow* window,
  GdkDevice* device,
  GList* targets,
  gint x_root,
  gint y_root
)

Description [src]

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

This function is called by the drag source.

Available since:3.20

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.
x_root gint
 

The x coordinate where the drag nominally started.

y_root gint
 

The y coordinate where the drag nominally started.

Return value

Returns: GdkDragContext
 

A newly created GdkDragContext.

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