3 (gobject:define-g-enum "GdkDragProtocol" drag-protocol
4 (:export t :type-initializer "gdk_drag_protocol_get_type")
13 (define-g-flags "GdkDragAction" drag-action
14 (:export t :type-initializer "gdk_drag_action_get_type")
22 (defcfun gdk-drag-get-selection gdk-atom
25 (defun drag-get-selection (context)
26 (gdk-drag-get-selection context))
28 (export 'drag-get-selection)
30 (defcfun gdk-drag-abort :void
34 (defun drag-abort (context time)
35 (gdk-drag-abort context time))
39 (defcfun gdk-drop-reply :void
44 (defun drop-reply (context ok time)
45 (gdk-drop-reply context ok time))
49 ;; TODO : GdkDragContext * gdk_drag_context_new(void);
51 (defcfun gdk-drag-drop :void
55 (defun drag-drop (context time)
56 (gdk-drag-drop context time))
61 void gdk_drag_find_window (GdkDragContext *context,
62 GdkWindow *drag_window,
65 GdkWindow **dest_window,
66 GdkDragProtocol *protocol);
68 void gdk_drag_find_window_for_screen (GdkDragContext *context,
69 GdkWindow *drag_window,
73 GdkWindow **dest_window,
74 GdkDragProtocol *protocol);
76 GdkDragContext * gdk_drag_begin (GdkWindow *window,
79 gboolean gdk_drag_motion (GdkDragContext *context,
80 GdkWindow *dest_window,
81 GdkDragProtocol protocol,
84 GdkDragAction suggested_action,
85 GdkDragAction possible_actions,
89 (defcfun gdk-drop-finish :void
94 (defun drop-finish (context success time)
95 (gdk-drop-finish context success time))
99 (defcfun gdk-drag-get-protocol native-window
103 (defun drag-get-protocol (xid)
104 (with-foreign-objects ((protocol 'drag-protocol))
105 (let ((result (gdk-drag-get-protocol xid protocol)))
107 (mem-ref protocol 'drag-protocol)))))
109 (export 'drag-get-protocol)
111 (defcfun gdk-drag-get-protocol-for-display native-window
116 (defun drag-get-protocol-for-display (display xid)
117 (with-foreign-objects ((protocol 'drag-protocol))
118 (let ((result (gdk-drag-get-protocol-for-display display xid protocol)))
120 (mem-ref protocol 'drag-protocol)))))
122 (export 'drag-get-protocol-for-display)
124 (defcfun gdk-drag-status :void
129 (defun drag-status (context action time)
130 (gdk-drag-status context action time))
132 (export 'drag-status)
134 (defcfun gdk-drag-drop-succeeded :boolean
137 (defun drag-drop-succeeded (context)
138 (gdk-drag-drop-succeeded context))
140 (export 'drag-drop-succeeded)