Function

Gdkdrag_begin_from_point

since: 3.20

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

Type: GdkWindow

The source window for this drag.

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

Type: GdkDevice

The device that controls this drag.

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

Type: A list of GdkAtom

The offered targets, as list of GdkAtoms.

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

Type: gint

The x coordinate where the drag nominally started.

y_root

Type: gint

The y coordinate where the drag nominally started.

Return value

Type: GdkDragContext

A newly created GdkDragContext.

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