Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkdroptarget.h
Go to the documentation of this file.
1/*
2 * Copyright © 2020 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#pragma once
21
22
23#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
24#error "Only <gtk/gtk.h> can be included directly."
25#endif
26
27#include <gtk/gtktypes.h>
28
29
31
32typedef struct _GtkDropTarget GtkDropTarget;
33
34
35#define GTK_TYPE_DROP_TARGET (gtk_drop_target_get_type ())
36#define GTK_DROP_TARGET(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_DROP_TARGET, GtkDropTarget))
37#define GTK_DROP_TARGET_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GTK_TYPE_DROP_TARGET, GtkDropTargetClass))
38#define GTK_IS_DROP_TARGET(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_DROP_TARGET))
39#define GTK_IS_DROP_TARGET_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_TYPE_DROP_TARGET))
40#define GTK_DROP_TARGET_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_DROP_TARGET, GtkDropTargetClass))
41
42typedef struct _GtkDropTargetClass GtkDropTargetClass;
43
46
49 GdkDragAction actions);
50
53 GType *types,
54 gsize n_types);
57 gsize *n_types);
60
63 GdkDragAction actions);
66
69 gboolean preload);
72
75
78
81
84
85
87
#define GDK_AVAILABLE_IN_4_4
#define GDK_AVAILABLE_IN_ALL
#define GDK_DEPRECATED_IN_4_4_FOR(f)
GdkDragAction
Definition gdkenums.h:287
struct _GdkContentFormats GdkContentFormats
Definition gdktypes.h:79
struct _GdkDrop GdkDrop
Definition gdktypes.h:86
unsigned long gsize
Definition glibconfig.h:83
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
GDK_AVAILABLE_IN_ALL void gtk_drop_target_set_gtypes(GtkDropTarget *self, GType *types, gsize n_types)
GDK_AVAILABLE_IN_ALL const GValue * gtk_drop_target_get_value(GtkDropTarget *self)
GDK_AVAILABLE_IN_ALL void gtk_drop_target_reject(GtkDropTarget *self)
GDK_AVAILABLE_IN_ALL GType gtk_drop_target_get_type(void) G_GNUC_CONST
typedefG_BEGIN_DECLS struct _GtkDropTarget GtkDropTarget
GDK_AVAILABLE_IN_ALL GtkDropTarget * gtk_drop_target_new(GType type, GdkDragAction actions)
GDK_AVAILABLE_IN_4_4 GdkDrop * gtk_drop_target_get_current_drop(GtkDropTarget *self)
GDK_AVAILABLE_IN_ALL gboolean gtk_drop_target_get_preload(GtkDropTarget *self)
GdkDrop * gtk_drop_target_get_drop(GtkDropTarget *self)
GDK_AVAILABLE_IN_ALL GdkDragAction gtk_drop_target_get_actions(GtkDropTarget *self)
GDK_AVAILABLE_IN_ALL const GType * gtk_drop_target_get_gtypes(GtkDropTarget *self, gsize *n_types)
GDK_AVAILABLE_IN_ALL void gtk_drop_target_set_preload(GtkDropTarget *self, gboolean preload)
struct _GtkDropTargetClass GtkDropTargetClass
GDK_AVAILABLE_IN_ALL void gtk_drop_target_set_actions(GtkDropTarget *self, GdkDragAction actions)
GDK_AVAILABLE_IN_ALL GdkContentFormats * gtk_drop_target_get_formats(GtkDropTarget *self)
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56