4 #include <gdk/gdktypes.h>
8 #endif /* __cplusplus */
10 typedef struct _GdkDragContext GdkDragContext;
13 GDK_ACTION_DEFAULT = 1 << 0,
14 GDK_ACTION_COPY = 1 << 1,
15 GDK_ACTION_MOVE = 1 << 2,
16 GDK_ACTION_LINK = 1 << 3,
17 GDK_ACTION_PRIVATE = 1 << 4,
18 GDK_ACTION_ASK = 1 << 5
24 GDK_DRAG_PROTO_ROOTWIN, /* A root window with nobody claiming
26 GDK_DRAG_PROTO_NONE, /* Not a valid drag window */
27 GDK_DRAG_PROTO_WIN32_DROPFILES, /* The simple WM_DROPFILES dnd */
28 GDK_DRAG_PROTO_OLE2, /* The complex OLE2 dnd (not implemented) */
31 /* Structure that holds information about a drag in progress.
32 * this is used on both source and destination sides.
34 struct _GdkDragContext {
35 GdkDragProtocol protocol;
39 GdkWindow *source_window;
40 GdkWindow *dest_window;
43 GdkDragAction actions;
44 GdkDragAction suggested_action;
52 GdkDragContext * gdk_drag_context_new (void);
53 void gdk_drag_context_ref (GdkDragContext *context);
54 void gdk_drag_context_unref (GdkDragContext *context);
56 /* Destination side */
58 void gdk_drag_status (GdkDragContext *context,
61 void gdk_drop_reply (GdkDragContext *context,
64 void gdk_drop_finish (GdkDragContext *context,
67 GdkAtom gdk_drag_get_selection (GdkDragContext *context);
71 GdkDragContext * gdk_drag_begin (GdkWindow *window,
73 guint32 gdk_drag_get_protocol (guint32 xid,
74 GdkDragProtocol *protocol);
75 void gdk_drag_find_window (GdkDragContext *context,
76 GdkWindow *drag_window,
79 GdkWindow **dest_window,
80 GdkDragProtocol *protocol);
81 gboolean gdk_drag_motion (GdkDragContext *context,
82 GdkWindow *dest_window,
83 GdkDragProtocol protocol,
86 GdkDragAction suggested_action,
87 GdkDragAction possible_actions,
89 void gdk_drag_drop (GdkDragContext *context,
91 void gdk_drag_abort (GdkDragContext *context,
96 #endif /* __cplusplus */