Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdkclipboard.h
Go to the documentation of this file.
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#pragma once
20
21#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
22#error "Only <gdk/gdk.h> can be included directly."
23#endif
24
25#include <gdk/gdktypes.h>
26
28
29#define GDK_TYPE_CLIPBOARD (gdk_clipboard_get_type ())
30#define GDK_CLIPBOARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_CLIPBOARD, GdkClipboard))
31#define GDK_IS_CLIPBOARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_CLIPBOARD))
32
35
44
47 int io_priority,
48 GCancellable *cancellable,
49 GAsyncReadyCallback callback,
50 gpointer user_data);
53 GAsyncResult *result,
54 GError **error);
55
58 const char **mime_types,
59 int io_priority,
60 GCancellable *cancellable,
61 GAsyncReadyCallback callback,
62 gpointer user_data);
65 GAsyncResult *result,
66 const char **out_mime_type,
67 GError **error);
70 GType type,
71 int io_priority,
72 GCancellable *cancellable,
73 GAsyncReadyCallback callback,
74 gpointer user_data);
77 GAsyncResult *result,
78 GError **error);
81 GCancellable *cancellable,
82 GAsyncReadyCallback callback,
83 gpointer user_data);
86 GAsyncResult *result,
87 GError **error);
90 GCancellable *cancellable,
91 GAsyncReadyCallback callback,
92 gpointer user_data);
95 GAsyncResult *result,
96 GError **error);
97
100 GdkContentProvider *provider);
103 GType type,
104 ...);
107 GType type,
108 va_list args);
111 const GValue *value);
114 const char *text);
117 GdkTexture *texture);
118
120
122
#define GDK_AVAILABLE_IN_ALL
GDK_AVAILABLE_IN_ALL void gdk_clipboard_set_texture(GdkClipboard *clipboard, GdkTexture *texture)
GDK_AVAILABLE_IN_ALL gboolean gdk_clipboard_set_content(GdkClipboard *clipboard, GdkContentProvider *provider)
GDK_AVAILABLE_IN_ALL GdkContentProvider * gdk_clipboard_get_content(GdkClipboard *clipboard)
GDK_AVAILABLE_IN_ALL gboolean gdk_clipboard_is_local(GdkClipboard *clipboard)
GDK_AVAILABLE_IN_ALL GdkTexture * gdk_clipboard_read_texture_finish(GdkClipboard *clipboard, GAsyncResult *result, GError **error)
GDK_AVAILABLE_IN_ALL void gdk_clipboard_read_value_async(GdkClipboard *clipboard, GType type, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GDK_AVAILABLE_IN_ALL char * gdk_clipboard_read_text_finish(GdkClipboard *clipboard, GAsyncResult *result, GError **error)
GDK_AVAILABLE_IN_ALL gboolean gdk_clipboard_store_finish(GdkClipboard *clipboard, GAsyncResult *result, GError **error)
GDK_AVAILABLE_IN_ALL void gdk_clipboard_set(GdkClipboard *clipboard, GType type,...)
GDK_AVAILABLE_IN_ALL void gdk_clipboard_set_value(GdkClipboard *clipboard, const GValue *value)
GDK_AVAILABLE_IN_ALL void gdk_clipboard_read_async(GdkClipboard *clipboard, const char **mime_types, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GDK_AVAILABLE_IN_ALL void gdk_clipboard_set_text(GdkClipboard *clipboard, const char *text)
GDK_AVAILABLE_IN_ALL GInputStream * gdk_clipboard_read_finish(GdkClipboard *clipboard, GAsyncResult *result, const char **out_mime_type, GError **error)
GDK_AVAILABLE_IN_ALL GdkDisplay * gdk_clipboard_get_display(GdkClipboard *clipboard)
GDK_AVAILABLE_IN_ALL GType gdk_clipboard_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_ALL void gdk_clipboard_read_text_async(GdkClipboard *clipboard, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GDK_AVAILABLE_IN_ALL void gdk_clipboard_store_async(GdkClipboard *clipboard, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GDK_AVAILABLE_IN_ALL GdkContentFormats * gdk_clipboard_get_formats(GdkClipboard *clipboard)
GDK_AVAILABLE_IN_ALL void gdk_clipboard_set_valist(GdkClipboard *clipboard, GType type, va_list args)
GDK_AVAILABLE_IN_ALL const GValue * gdk_clipboard_read_value_finish(GdkClipboard *clipboard, GAsyncResult *result, GError **error)
GDK_AVAILABLE_IN_ALL void gdk_clipboard_read_texture_async(GdkClipboard *clipboard, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
struct _GdkDisplay GdkDisplay
Definition gdktypes.h:90
struct _GdkContentFormats GdkContentFormats
Definition gdktypes.h:79
struct _GdkClipboard GdkClipboard
Definition gdktypes.h:88
struct _GdkTexture GdkTexture
Definition gdktypes.h:82
struct _GAsyncResult GAsyncResult
Definition giotypes.h:36
void(* GAsyncReadyCallback)(GObject *source_object, GAsyncResult *res, gpointer data)
Definition giotypes.h:190
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
#define G_DEFINE_AUTOPTR_CLEANUP_FUNC(TypeName, func)
Definition gmacros.h:1400
GOBJECT_AVAILABLE_IN_ALL void g_object_unref(gpointer object)
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
void * gpointer
Definition gtypes.h:109
int value
Definition lsqlite3.c:2155
static void error(LoadState *S, const char *why)