gdk-Drag-and-Drop {RGtk2}R Documentation

Drag and Drop

Description

Functions for controlling drag and drop handling

Methods and Functions

gdkDragGetSelection(object)
gdkDragAbort(object, time)
gdkDropReply(object, ok, time = "GDK_CURRENT_TIME")
gdkDragContextNew()
gdkDragDrop(object, time)
gdkDragFindWindow(object, drag.window, x.root, y.root)
gdkDragFindWindowForScreen(object, drag.window, screen, x.root, y.root)
gdkDragBegin(object, targets)
gdkDragMotion(object, dest.window, protocol, x.root, y.root, suggested.action, possible.actions, time)
gdkDropFinish(object, success, time = "GDK_CURRENT_TIME")
gdkDragGetProtocol(xid)
gdkDragGetProtocolForDisplay(display, xid)
gdkDragStatus(object, action, time = "GDK_CURRENT_TIME")
gdkDragDropSucceeded(object)
gdkDragContext()

Detailed Description

These functions provide a low level interface for drag and drop. The X backend of GDK supports both the Xdnd and Motif drag and drop protocols transparently, the Win32 backend supports the WM_DROPFILES protocol.

GTK+ provides a higher level abstraction based on top of these functions, and so they are not normally needed in GTK+ applications. See the Drag and Drop section of the GTK+ documentation for more information.

Structures

GdkDragContext

A GdkDragContext holds information about a drag in progress. It is used on both source and destination sides.

protocol

[GdkDragProtocol] the parent instance

isSource

[logical] the DND protocol which governs this drag.

sourceWindow

[GdkWindow] TRUE if the context is used on the source side.

destWindow

[GdkWindow] the source of this drag.

targets

[list] the destination window of this drag.

actions

[GdkDragAction] a list of targets offered by the source.

suggestedAction

[GdkDragAction] a bitmask of actions proposed by the source when suggested.action is GDK_ACTION_ASK.

action

[GdkDragAction] the action suggested by the source.

startTime

[numeric] the action chosen by the destination.

Convenient Construction

gdkDragContext is the equivalent of gdkDragContextNew.

Enums and Flags

Author(s)

Derived by RGtkGen from GTK+ documentation

References

http://library.gnome.org/devel//gdk/gdk-Drag-and-Drop.html


[Package RGtk2 version 2.20.21 Index]