Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdkdrop.h
Go to the documentation of this file.
1/*
2 * Copyright © 2018 Benjamin Otte
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 *
17 * Authors: Benjamin Otte <otte@gnome.org>
18 */
19
20
21#pragma once
22
23#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
24#error "Only <gdk/gdk.h> can be included directly."
25#endif
26
27#include <gdk/gdktypes.h>
28
30
31#define GDK_TYPE_DROP (gdk_drop_get_type ())
32#define GDK_DROP(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_DROP, GdkDrop))
33#define GDK_IS_DROP(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_DROP))
34
37
50
53 GdkDragAction actions,
54 GdkDragAction preferred);
57 GdkDragAction action);
58
61 const char **mime_types,
62 int io_priority,
63 GCancellable *cancellable,
64 GAsyncReadyCallback callback,
65 gpointer user_data);
68 GAsyncResult *result,
69 const char **out_mime_type,
70 GError **error);
73 GType type,
74 int io_priority,
75 GCancellable *cancellable,
76 GAsyncReadyCallback callback,
77 gpointer user_data);
80 GAsyncResult *result,
81 GError **error);
82
84
86
#define GDK_AVAILABLE_IN_ALL
GDK_AVAILABLE_IN_ALL const GValue * gdk_drop_read_value_finish(GdkDrop *self, GAsyncResult *result, GError **error)
GDK_AVAILABLE_IN_ALL GType gdk_drop_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_ALL GdkContentFormats * gdk_drop_get_formats(GdkDrop *self)
GDK_AVAILABLE_IN_ALL void gdk_drop_finish(GdkDrop *self, GdkDragAction action)
GDK_AVAILABLE_IN_ALL void gdk_drop_status(GdkDrop *self, GdkDragAction actions, GdkDragAction preferred)
GDK_AVAILABLE_IN_ALL GdkDrag * gdk_drop_get_drag(GdkDrop *self)
GDK_AVAILABLE_IN_ALL GdkSurface * gdk_drop_get_surface(GdkDrop *self)
GDK_AVAILABLE_IN_ALL void gdk_drop_read_async(GdkDrop *self, const char **mime_types, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GDK_AVAILABLE_IN_ALL GInputStream * gdk_drop_read_finish(GdkDrop *self, GAsyncResult *result, const char **out_mime_type, GError **error)
GDK_AVAILABLE_IN_ALL GdkDevice * gdk_drop_get_device(GdkDrop *self)
GDK_AVAILABLE_IN_ALL GdkDragAction gdk_drop_get_actions(GdkDrop *self)
GDK_AVAILABLE_IN_ALL GdkDisplay * gdk_drop_get_display(GdkDrop *self)
GDK_AVAILABLE_IN_ALL void gdk_drop_read_value_async(GdkDrop *self, GType type, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GdkDragAction
Definition gdkenums.h:287
struct _GdkDevice GdkDevice
Definition gdktypes.h:84
struct _GdkDisplay GdkDisplay
Definition gdktypes.h:90
struct _GdkContentFormats GdkContentFormats
Definition gdktypes.h:79
struct _GdkDrop GdkDrop
Definition gdktypes.h:86
struct _GdkSurface GdkSurface
Definition gdktypes.h:91
struct _GdkDrag GdkDrag
Definition gdktypes.h:85
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
void * gpointer
Definition gtypes.h:109
static void error(LoadState *S, const char *why)