]> Pileus Git - ~andy/gtk/blob - gdk/quartz/gdkdnd-quartz.c
Add quartz backend.
[~andy/gtk] / gdk / quartz / gdkdnd-quartz.c
1 /* gdkdnd-quartz.c
2  *
3  * Copyright (C) 2005 Imendio AB
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #include "gdkdnd.h"
22
23 static void
24 gdk_drag_context_init (GdkDragContext *dragcontext)
25 {
26   /* FIXME: Implement */
27 }
28
29 static void
30 gdk_drag_context_class_init (GdkDragContextClass *klass)
31 {
32   /* FIXME: Implement */
33 }
34
35 GType
36 gdk_drag_context_get_type (void)
37 {
38   static GType object_type = 0;
39
40   if (!object_type)
41     {
42       static const GTypeInfo object_info =
43       {
44         sizeof (GdkDragContextClass),
45         (GBaseInitFunc) NULL,
46         (GBaseFinalizeFunc) NULL,
47         (GClassInitFunc) gdk_drag_context_class_init,
48         NULL,           /* class_finalize */
49         NULL,           /* class_data */
50         sizeof (GdkDragContext),
51         0,              /* n_preallocs */
52         (GInstanceInitFunc) gdk_drag_context_init,
53       };
54       
55       object_type = g_type_register_static (G_TYPE_OBJECT,
56                                             "GdkDragContext",
57                                             &object_info,
58                                             0);
59     }
60   
61   return object_type;
62 }
63
64 GdkDragContext *
65 gdk_drag_context_new (void)
66 {
67   return (GdkDragContext *)g_object_new (gdk_drag_context_get_type (), NULL);
68 }
69
70 void            
71 gdk_drag_context_ref (GdkDragContext *context)
72 {
73   g_object_ref (context);
74 }
75
76 void            
77 gdk_drag_context_unref (GdkDragContext *context)
78 {
79   g_object_unref (context);
80 }
81
82 GdkDragContext * 
83 gdk_drag_begin (GdkWindow     *window,
84                 GList         *targets)
85 {
86   /* FIXME: Implement */
87   return NULL;
88 }
89
90 gboolean        
91 gdk_drag_motion (GdkDragContext *context,
92                  GdkWindow      *dest_window,
93                  GdkDragProtocol protocol,
94                  gint            x_root, 
95                  gint            y_root,
96                  GdkDragAction   suggested_action,
97                  GdkDragAction   possible_actions,
98                  guint32         time)
99 {
100   /* FIXME: Implement */
101   return FALSE;
102 }
103
104 guint32
105 gdk_drag_get_protocol_for_display (GdkDisplay      *display,
106                                    guint32          xid,
107                                    GdkDragProtocol *protocol)
108 {
109   /* FIXME: Implement */
110   return 0;
111 }
112
113 void
114 gdk_drag_find_window_for_screen (GdkDragContext  *context,
115                                  GdkWindow       *drag_window,
116                                  GdkScreen       *screen,
117                                  gint             x_root,
118                                  gint             y_root,
119                                  GdkWindow      **dest_window,
120                                  GdkDragProtocol *protocol)
121 {
122   /* FIXME: Implement */
123 }
124
125 void
126 gdk_drag_drop (GdkDragContext *context,
127                guint32         time)
128 {
129   /* FIXME: Implement */
130 }
131
132 void
133 gdk_drag_abort (GdkDragContext *context,
134                 guint32         time)
135 {
136   g_return_if_fail (context != NULL);
137   
138   /* FIXME: Implement */
139 }
140
141 void             
142 gdk_drag_status (GdkDragContext   *context,
143                  GdkDragAction     action,
144                  guint32           time)
145 {
146   /* FIXME: Implement */
147 }
148
149 void 
150 gdk_drop_reply (GdkDragContext   *context,
151                 gboolean          ok,
152                 guint32           time)
153 {
154   g_return_if_fail (context != NULL);
155
156   /* FIXME: Implement */
157 }
158
159 void             
160 gdk_drop_finish (GdkDragContext   *context,
161                  gboolean          success,
162                  guint32           time)
163 {
164   /* FIXME: Implement */
165 }
166
167 void            
168 gdk_window_register_dnd (GdkWindow *window)
169 {
170   /* FIXME: Implement */
171 }
172
173 GdkAtom       
174 gdk_drag_get_selection (GdkDragContext *context)
175 {
176   /* FIXME: Implement */
177   return GDK_NONE;
178 }