1 /* GDK - The GIMP Drawing Kit
2 * Copyright (C) 2010, Red Hat, Inc
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef __GDK_DND_PRIVATE_H__
19 #define __GDK_DND_PRIVATE_H__
26 #define GDK_DRAG_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_DRAG_CONTEXT, GdkDragContextClass))
27 #define GDK_IS_DRAG_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_DRAG_CONTEXT))
28 #define GDK_DRAG_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_DRAG_CONTEXT, GdkDragContextClass))
30 typedef struct _GdkDragContextClass GdkDragContextClass;
33 struct _GdkDragContextClass {
34 GObjectClass parent_class;
36 GdkWindow * (*find_window) (GdkDragContext *context,
37 GdkWindow *drag_window,
41 GdkDragProtocol *protocol);
42 GdkAtom (*get_selection) (GdkDragContext *context);
43 gboolean (*drag_motion) (GdkDragContext *context,
44 GdkWindow *dest_window,
45 GdkDragProtocol protocol,
48 GdkDragAction suggested_action,
49 GdkDragAction possible_actions,
51 void (*drag_status) (GdkDragContext *context,
54 void (*drag_abort) (GdkDragContext *context,
56 void (*drag_drop) (GdkDragContext *context,
58 void (*drop_reply) (GdkDragContext *context,
61 void (*drop_finish) (GdkDragContext *context,
64 gboolean (*drop_status) (GdkDragContext *context);
67 struct _GdkDragContext {
68 GObject parent_instance;
71 GdkDragProtocol protocol;
74 GdkWindow *source_window;
75 GdkWindow *dest_window;
78 GdkDragAction actions;
79 GdkDragAction suggested_action;