requestor : the window on which the data is stored
data : location to store a pointer to the retrieved data. If the retrieval failed, NULL we be stored here, otherwise, it will be non-NULL and the returned data should be freed with g_free() when you are finished using it. The length of the allocated memory is one more than the the length of the returned data, and the final byte will always be zero, to ensure null-termination of strings.
prop_type : location to store the type of the property.
prop_format : location to store the format of the property.
Returns : the length of the retrieved data.
gdk_selection_send_notify ()
voidgdk_selection_send_notify (guint32 requestor,
GdkAtom selection,GdkAtom target,GdkAtom property,guint32 time);
|
Send a response to SelectionRequest event.
requestor : window to which to deliver response.
selection : selection that was requested.
target : target that was selected.
property : property in which the selection owner stored the data, or GDK_NONE to indicate that the request was rejected.
time : timestamp.
Drag and Drop
Name
Drag and Drop -- functions for controlling drag and drop handling.
Synopsis
#include <gdk/gdk.h>
GdkAtom gdk_drag_get_selection(GdkDragContext *context);
voidgdk_drag_abort(GdkDragContext *context,guint32 time);
voidgdk_drop_reply(GdkDragContext *context,gboolean ok,guint32 time);
GdkDragContext* gdk_drag_context_new(void);
voidgdk_drag_drop (GdkDragContext *context,guint32 time);
voidgdk_drag_find_window(GdkDragContext *context,GdkWindow *drag_window,
gint x_root,gint y_root,GdkWindow **dest_window,GdkDragProtocol *protocol);
voidgdk_drag_context_ref(GdkDragContext *context);
GdkDragContext* gdk_drag_begin(GdkWindow *window,GList *targets);
gbooleangdk_drag_motion (GdkDragContext *context,GdkWindow *dest_window,
GdkDragProtocol protocol,gint x_root,gint y_root,
GdkDragAction suggested_action,GdkDragAction possible_actions,guint32 time);
voidgdk_drop_finish (GdkDragContext *context,gboolean success,guint32 time);
guint32 gdk_drag_get_protocol (guint32 xid,GdkDragProtocol *protocol);
enumGdkDragProtocol;
voidgdk_drag_context_unref(GdkDragContext *context);
structGdkDragContext;
enumGdkDragAction;
voidgdk_drag_status (GdkDragContext *context,
GdkDragAction action,guint32 time);
|
Description
These functions provide a low level interface for drag and drop. GDK supports both the Xdnd and Motif drag and drop protocols transparently.
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.
Details
gdk_drag_get_selection ()
GdkAtom gdk_drag_get_selection(GdkDragContext *context);
|
context :
Returns :
gdk_drag_abort ()
voidgdk_drag_abort(GdkDragContext *context,guint32 time);
|
context :
time :
gdk_drop_reply ()
voidgdk_drop_reply(GdkDragContext *context,gboolean ok,guint32 time);
|
context :
ok :
time :
gdk_drag_context_new ()
GdkDragContext* gdk_drag_context_new(void);
|
Returns :
gdk_drag_drop ()
voidgdk_drag_drop (GdkDragContext *context,guint32 time);
|
context :
time :
gdk_drag_find_window ()
voidgdk_drag_find_window(GdkDragContext *context,GdkWindow *drag_window,
gint x_root,gint y_root,GdkWindow **dest_window,GdkDragProtocol *protocol);
|
context :
drag_window :
x_root :
y_root :
dest_window :
protocol :