Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdkcontentprovider.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_CONTENT_PROVIDER (gdk_content_provider_get_type ())
30#define GDK_CONTENT_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_CONTENT_PROVIDER, GdkContentProvider))
31#define GDK_IS_CONTENT_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_CONTENT_PROVIDER))
32#define GDK_CONTENT_PROVIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_CONTENT_PROVIDER, GdkContentProviderClass))
33#define GDK_IS_CONTENT_PROVIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_CONTENT_PROVIDER))
34#define GDK_CONTENT_PROVIDER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_CONTENT_PROVIDER, GdkContentProviderClass))
35
37
42
43/**
44 * GdkContentProviderClass:
45 * @content_changed: Signal class closure for `GdkContentProvider::content-changed`
46 *
47 * Class structure for `GdkContentProvider`.
48 */
50{
52
53 /* signals */
54 void (* content_changed) (GdkContentProvider *provider);
55
56 /*< private >*/
57 /* vfuncs */
59 GdkClipboard *clipboard);
61 GdkClipboard *clipboard);
62
63 GdkContentFormats * (* ref_formats) (GdkContentProvider *provider);
64 GdkContentFormats * (* ref_storable_formats) (GdkContentProvider *provider);
66 const char *mime_type,
67 GOutputStream *stream,
68 int io_priority,
69 GCancellable *cancellable,
70 GAsyncReadyCallback callback,
71 gpointer user_data);
73 GAsyncResult *result,
74 GError **error);
77 GError **error);
78
79 /*< private >*/
81};
82
83
86
91
94
97 const char *mime_type,
98 GOutputStream *stream,
99 int io_priority,
100 GCancellable *cancellable,
101 GAsyncReadyCallback callback,
102 gpointer user_data);
105 GAsyncResult *result,
106 GError **error);
109 GValue *value,
110 GError **error);
111
113
115
const char * mime_type
Definition civetweb.c:8224
#define GDK_AVAILABLE_IN_ALL
GDK_AVAILABLE_IN_ALL GType gdk_content_provider_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_ALL GdkContentFormats * gdk_content_provider_ref_storable_formats(GdkContentProvider *provider)
GDK_AVAILABLE_IN_ALL void gdk_content_provider_content_changed(GdkContentProvider *provider)
GDK_AVAILABLE_IN_ALL void gdk_content_provider_write_mime_type_async(GdkContentProvider *provider, const char *mime_type, GOutputStream *stream, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GDK_AVAILABLE_IN_ALL gboolean gdk_content_provider_write_mime_type_finish(GdkContentProvider *provider, GAsyncResult *result, GError **error)
GDK_AVAILABLE_IN_ALL gboolean gdk_content_provider_get_value(GdkContentProvider *provider, GValue *value, GError **error)
GDK_AVAILABLE_IN_ALL GdkContentFormats * gdk_content_provider_ref_formats(GdkContentProvider *provider)
struct _GdkContentFormats GdkContentFormats
Definition gdktypes.h:79
struct _GdkClipboard GdkClipboard
Definition gdktypes.h:88
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)
void(* detach_clipboard)(GdkContentProvider *provider, GdkClipboard *clipboard)
gboolean(* get_value)(GdkContentProvider *provider, GValue *value, GError **error)
void(* write_mime_type_async)(GdkContentProvider *provider, const char *mime_type, GOutputStream *stream, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
void(* content_changed)(GdkContentProvider *provider)
gboolean(* write_mime_type_finish)(GdkContentProvider *provider, GAsyncResult *result, GError **error)
void(* attach_clipboard)(GdkContentProvider *provider, GdkClipboard *clipboard)