Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkdragsource.h
Go to the documentation of this file.
1/* -*- Mode: C; c-file-style: "gnu"; tab-width: 8 -*- */
2/* GTK - The GIMP Toolkit
3 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
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/*
20 * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
21 * file for a list of people on the GTK+ Team. See the ChangeLog
22 * files for a list of changes. These files are distributed with
23 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
24 */
25
26#pragma once
27
28
29#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
30#error "Only <gtk/gtk.h> can be included directly."
31#endif
32
33#include <gtk/gtkwidget.h>
34
35
37
38#define GTK_TYPE_DRAG_SOURCE (gtk_drag_source_get_type ())
39#define GTK_DRAG_SOURCE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_DRAG_SOURCE, GtkDragSource))
40#define GTK_DRAG_SOURCE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GTK_TYPE_DRAG_SOURCE, GtkDragSourceClass))
41#define GTK_IS_DRAG_SOURCE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_DRAG_SOURCE))
42#define GTK_IS_DRAG_SOURCE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_TYPE_DRAG_SOURCE))
43#define GTK_DRAG_SOURCE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_DRAG_SOURCE, GtkDragSourceClass))
44
45typedef struct _GtkDragSource GtkDragSource;
46typedef struct _GtkDragSourceClass GtkDragSourceClass;
47
50
53
56 GdkContentProvider *content);
59
62 GdkDragAction actions);
65
68 GdkPaintable *paintable,
69 int hot_x,
70 int hot_y);
73
76
79 int start_x,
80 int start_y,
81 int current_x,
82 int current_y);
83
84
86
#define GDK_AVAILABLE_IN_ALL
GdkDragAction
Definition gdkenums.h:287
struct _GdkDrag GdkDrag
Definition gdktypes.h:85
#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_drag_source_drag_cancel(GtkDragSource *source)
GDK_AVAILABLE_IN_ALL GType gtk_drag_source_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_ALL GtkDragSource * gtk_drag_source_new(void)
GDK_AVAILABLE_IN_ALL GdkDragAction gtk_drag_source_get_actions(GtkDragSource *source)
struct _GtkDragSource GtkDragSource
GDK_AVAILABLE_IN_ALL void gtk_drag_source_set_content(GtkDragSource *source, GdkContentProvider *content)
GDK_AVAILABLE_IN_ALL void gtk_drag_source_set_icon(GtkDragSource *source, GdkPaintable *paintable, int hot_x, int hot_y)
struct _GtkDragSourceClass GtkDragSourceClass
GDK_AVAILABLE_IN_ALL GdkContentProvider * gtk_drag_source_get_content(GtkDragSource *source)
GDK_AVAILABLE_IN_ALL gboolean gtk_drag_check_threshold(GtkWidget *widget, int start_x, int start_y, int current_x, int current_y)
GDK_AVAILABLE_IN_ALL GdkDrag * gtk_drag_source_get_drag(GtkDragSource *source)
GDK_AVAILABLE_IN_ALL void gtk_drag_source_set_actions(GtkDragSource *source, GdkDragAction actions)
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56