1 | /* -*- Mode: C; c-file-style: "gnu"; tab-width: 8 -*- */ |
2 | /* GTK - The GIMP Toolkit |
3 | * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald |
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, see <http://www.gnu.org/licenses/>. |
17 | */ |
18 | |
19 | /* |
20 | * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS |
21 | * file for a list of people on the GTK+ Team. See the ChangeLog |
22 | * files for a list of changes. These files are distributed with |
23 | * GTK+ at ftp://ftp.gtk.org/pub/gtk/. |
24 | */ |
25 | |
26 | #ifndef __GTK_DROP_TARGET_ASYNC_H__ |
27 | #define __GTK_DROP_TARGET_ASYNC_H__ |
28 | |
29 | |
30 | #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) |
31 | #error "Only <gtk/gtk.h> can be included directly." |
32 | #endif |
33 | |
34 | #include <gtk/gtkwidget.h> |
35 | |
36 | |
37 | G_BEGIN_DECLS |
38 | |
39 | typedef struct _GtkDropTargetAsync GtkDropTargetAsync; |
40 | typedef struct _GtkDropTargetAsyncClass GtkDropTargetAsyncClass; |
41 | |
42 | |
43 | #define GTK_TYPE_DROP_TARGET_ASYNC (gtk_drop_target_async_get_type ()) |
44 | #define GTK_DROP_TARGET_ASYNC(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_DROP_TARGET_ASYNC, GtkDropTargetAsync)) |
45 | #define GTK_DROP_TARGET_ASYNC_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GTK_TYPE_DROP_TARGET_ASYNC, GtkDropTargetAsyncClass)) |
46 | #define GTK_IS_DROP_TARGET_ASYNC(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_DROP_TARGET_ASYNC)) |
47 | #define GTK_IS_DROP_TARGET_ASYNC_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_TYPE_DROP_TARGET_ASYNC)) |
48 | #define GTK_DROP_TARGET_ASYNC_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_DROP_TARGET_ASYNC, GtkDropTargetAsyncClass)) |
49 | |
50 | |
51 | GDK_AVAILABLE_IN_ALL |
52 | GType gtk_drop_target_async_get_type (void) G_GNUC_CONST; |
53 | |
54 | GDK_AVAILABLE_IN_ALL |
55 | GtkDropTargetAsync * gtk_drop_target_async_new (GdkContentFormats *formats, |
56 | GdkDragAction actions); |
57 | |
58 | GDK_AVAILABLE_IN_ALL |
59 | void gtk_drop_target_async_set_formats (GtkDropTargetAsync *self, |
60 | GdkContentFormats *formats); |
61 | GDK_AVAILABLE_IN_ALL |
62 | GdkContentFormats * gtk_drop_target_async_get_formats (GtkDropTargetAsync *self); |
63 | |
64 | GDK_AVAILABLE_IN_ALL |
65 | void gtk_drop_target_async_set_actions (GtkDropTargetAsync *self, |
66 | GdkDragAction actions); |
67 | GDK_AVAILABLE_IN_ALL |
68 | GdkDragAction gtk_drop_target_async_get_actions (GtkDropTargetAsync *self); |
69 | |
70 | GDK_AVAILABLE_IN_ALL |
71 | void gtk_drop_target_async_reject_drop (GtkDropTargetAsync *self, |
72 | GdkDrop *drop); |
73 | |
74 | |
75 | G_END_DECLS |
76 | |
77 | #endif /* __GTK_DROP_TARGET_ASYNC_H__ */ |
78 | |