1 | /* GDK - The GIMP Drawing Kit |
2 | * |
3 | * Copyright (C) 2017 Benjamin Otte <otte@gnome.org> |
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 | #ifndef __GDK_CLIPBOARD_H__ |
20 | #define __GDK_CLIPBOARD_H__ |
21 | |
22 | #if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION) |
23 | #error "Only <gdk/gdk.h> can be included directly." |
24 | #endif |
25 | |
26 | #include <gdk/gdkversionmacros.h> |
27 | #include <gdk/gdktypes.h> |
28 | #include <gio/gio.h> |
29 | |
30 | |
31 | G_BEGIN_DECLS |
32 | |
33 | #define GDK_TYPE_CLIPBOARD (gdk_clipboard_get_type ()) |
34 | #define GDK_CLIPBOARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_CLIPBOARD, GdkClipboard)) |
35 | #define GDK_IS_CLIPBOARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_CLIPBOARD)) |
36 | |
37 | GDK_AVAILABLE_IN_ALL |
38 | GType gdk_clipboard_get_type (void) G_GNUC_CONST; |
39 | |
40 | GDK_AVAILABLE_IN_ALL |
41 | GdkDisplay * gdk_clipboard_get_display (GdkClipboard *clipboard); |
42 | GDK_AVAILABLE_IN_ALL |
43 | GdkContentFormats * gdk_clipboard_get_formats (GdkClipboard *clipboard); |
44 | GDK_AVAILABLE_IN_ALL |
45 | gboolean gdk_clipboard_is_local (GdkClipboard *clipboard); |
46 | GDK_AVAILABLE_IN_ALL |
47 | GdkContentProvider * gdk_clipboard_get_content (GdkClipboard *clipboard); |
48 | |
49 | GDK_AVAILABLE_IN_ALL |
50 | void gdk_clipboard_store_async (GdkClipboard *clipboard, |
51 | int io_priority, |
52 | GCancellable *cancellable, |
53 | GAsyncReadyCallback callback, |
54 | gpointer user_data); |
55 | GDK_AVAILABLE_IN_ALL |
56 | gboolean gdk_clipboard_store_finish (GdkClipboard *clipboard, |
57 | GAsyncResult *result, |
58 | GError **error); |
59 | |
60 | GDK_AVAILABLE_IN_ALL |
61 | void gdk_clipboard_read_async (GdkClipboard *clipboard, |
62 | const char **mime_types, |
63 | int io_priority, |
64 | GCancellable *cancellable, |
65 | GAsyncReadyCallback callback, |
66 | gpointer user_data); |
67 | GDK_AVAILABLE_IN_ALL |
68 | GInputStream * gdk_clipboard_read_finish (GdkClipboard *clipboard, |
69 | GAsyncResult *result, |
70 | const char **out_mime_type, |
71 | GError **error); |
72 | GDK_AVAILABLE_IN_ALL |
73 | void gdk_clipboard_read_value_async (GdkClipboard *clipboard, |
74 | GType type, |
75 | int io_priority, |
76 | GCancellable *cancellable, |
77 | GAsyncReadyCallback callback, |
78 | gpointer user_data); |
79 | GDK_AVAILABLE_IN_ALL |
80 | const GValue * gdk_clipboard_read_value_finish (GdkClipboard *clipboard, |
81 | GAsyncResult *result, |
82 | GError **error); |
83 | GDK_AVAILABLE_IN_ALL |
84 | void gdk_clipboard_read_texture_async (GdkClipboard *clipboard, |
85 | GCancellable *cancellable, |
86 | GAsyncReadyCallback callback, |
87 | gpointer user_data); |
88 | GDK_AVAILABLE_IN_ALL |
89 | GdkTexture * gdk_clipboard_read_texture_finish (GdkClipboard *clipboard, |
90 | GAsyncResult *result, |
91 | GError **error); |
92 | GDK_AVAILABLE_IN_ALL |
93 | void gdk_clipboard_read_text_async (GdkClipboard *clipboard, |
94 | GCancellable *cancellable, |
95 | GAsyncReadyCallback callback, |
96 | gpointer user_data); |
97 | GDK_AVAILABLE_IN_ALL |
98 | char * gdk_clipboard_read_text_finish (GdkClipboard *clipboard, |
99 | GAsyncResult *result, |
100 | GError **error); |
101 | |
102 | GDK_AVAILABLE_IN_ALL |
103 | gboolean gdk_clipboard_set_content (GdkClipboard *clipboard, |
104 | GdkContentProvider *provider); |
105 | GDK_AVAILABLE_IN_ALL |
106 | void gdk_clipboard_set (GdkClipboard *clipboard, |
107 | GType type, |
108 | ...); |
109 | GDK_AVAILABLE_IN_ALL |
110 | void gdk_clipboard_set_valist (GdkClipboard *clipboard, |
111 | GType type, |
112 | va_list args); |
113 | GDK_AVAILABLE_IN_ALL |
114 | void gdk_clipboard_set_value (GdkClipboard *clipboard, |
115 | const GValue *value); |
116 | GDK_AVAILABLE_IN_ALL |
117 | void gdk_clipboard_set_text (GdkClipboard *clipboard, |
118 | const char *text); |
119 | GDK_AVAILABLE_IN_ALL |
120 | void gdk_clipboard_set_texture (GdkClipboard *clipboard, |
121 | GdkTexture *texture); |
122 | |
123 | G_END_DECLS |
124 | |
125 | #endif /* __GDK_CLIPBOARD_H__ */ |
126 | |