2008-07-01 22:57:50 +00:00
|
|
|
/* GDK - The GIMP Drawing Kit
|
2005-07-12 05:09:13 +00:00
|
|
|
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2012-02-27 13:01:10 +00:00
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2005-07-12 05:09:13 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
|
|
|
|
* file for a list of people on the GTK+ Team. See the ChangeLog
|
|
|
|
* files for a list of changes. These files are distributed with
|
2008-05-28 14:01:57 +00:00
|
|
|
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
2005-07-12 05:09:13 +00:00
|
|
|
*/
|
2008-05-28 14:01:57 +00:00
|
|
|
|
2012-12-28 14:57:34 +00:00
|
|
|
#ifndef __GDK_DND_H__
|
|
|
|
#define __GDK_DND_H__
|
|
|
|
|
2019-11-27 13:33:43 +00:00
|
|
|
#if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION)
|
2008-05-28 14:01:57 +00:00
|
|
|
#error "Only <gdk/gdk.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2010-05-25 22:38:44 +00:00
|
|
|
#include <gdk/gdkdevice.h>
|
2021-10-25 00:14:18 +00:00
|
|
|
#include <gdk/gdkenums.h>
|
2015-12-07 18:47:45 +00:00
|
|
|
#include <gdk/gdkevents.h>
|
2021-10-25 00:14:18 +00:00
|
|
|
#include <gdk/gdktypes.h>
|
1999-10-01 23:18:30 +00:00
|
|
|
|
2005-06-12 05:32:25 +00:00
|
|
|
G_BEGIN_DECLS
|
1999-10-01 23:18:30 +00:00
|
|
|
|
2018-06-29 17:34:14 +00:00
|
|
|
#define GDK_TYPE_DRAG (gdk_drag_get_type ())
|
|
|
|
#define GDK_DRAG(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_DRAG, GdkDrag))
|
|
|
|
#define GDK_IS_DRAG(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_DRAG))
|
1999-10-01 23:18:30 +00:00
|
|
|
|
2016-02-15 16:02:14 +00:00
|
|
|
/**
|
|
|
|
* GdkDragCancelReason:
|
|
|
|
* @GDK_DRAG_CANCEL_NO_TARGET: There is no suitable drop target.
|
|
|
|
* @GDK_DRAG_CANCEL_USER_CANCELLED: Drag cancelled by the user
|
|
|
|
* @GDK_DRAG_CANCEL_ERROR: Unspecified error.
|
|
|
|
*
|
2021-02-21 05:13:57 +00:00
|
|
|
* Used in `GdkDrag` to the reason of a cancelled DND operation.
|
2016-02-15 16:02:14 +00:00
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
GDK_DRAG_CANCEL_NO_TARGET,
|
|
|
|
GDK_DRAG_CANCEL_USER_CANCELLED,
|
|
|
|
GDK_DRAG_CANCEL_ERROR
|
|
|
|
} GdkDragCancelReason;
|
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-06-29 17:34:14 +00:00
|
|
|
GType gdk_drag_get_type (void) G_GNUC_CONST;
|
Deprecate.
* gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref): Deprecate.
* gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not
GTK_DISABLE_DEPRECATED.
* gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
* gdk/tmpl/colors.sgml, gdk/tmpl/pixmaps.sgml, gdk/tmpl/dnd.sgml,
gdk/tmpl/gcs.sgml: Document ref and unref functions as deprecated.
2001-11-30 22:55:28 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-06-29 17:34:14 +00:00
|
|
|
GdkDisplay * gdk_drag_get_display (GdkDrag *drag);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-06-29 17:34:14 +00:00
|
|
|
GdkDevice * gdk_drag_get_device (GdkDrag *drag);
|
2010-05-25 22:38:44 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-06-29 17:34:14 +00:00
|
|
|
GdkContentFormats *gdk_drag_get_formats (GdkDrag *drag);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-06-29 17:34:14 +00:00
|
|
|
GdkDragAction gdk_drag_get_actions (GdkDrag *drag);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-06-29 17:34:14 +00:00
|
|
|
GdkDragAction gdk_drag_get_selected_action (GdkDrag *drag);
|
2010-05-25 15:54:16 +00:00
|
|
|
|
2018-05-11 22:13:11 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2021-09-14 17:10:48 +00:00
|
|
|
gboolean gdk_drag_action_is_unique (GdkDragAction action) G_GNUC_CONST;
|
1999-10-01 23:18:30 +00:00
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-06-29 17:34:14 +00:00
|
|
|
GdkDrag * gdk_drag_begin (GdkSurface *surface,
|
|
|
|
GdkDevice *device,
|
|
|
|
GdkContentProvider *content,
|
|
|
|
GdkDragAction actions,
|
2020-05-17 21:49:02 +00:00
|
|
|
double dx,
|
|
|
|
double dy);
|
2002-04-25 22:29:14 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-06-29 17:34:14 +00:00
|
|
|
void gdk_drag_drop_done (GdkDrag *drag,
|
|
|
|
gboolean success);
|
2015-12-07 20:07:13 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-06-29 17:34:14 +00:00
|
|
|
GdkSurface *gdk_drag_get_drag_surface (GdkDrag *drag);
|
2015-12-02 04:33:53 +00:00
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2018-06-29 17:34:14 +00:00
|
|
|
void gdk_drag_set_hotspot (GdkDrag *drag,
|
2020-07-24 13:54:49 +00:00
|
|
|
int hot_x,
|
|
|
|
int hot_y);
|
2015-12-08 02:52:03 +00:00
|
|
|
|
2020-02-24 13:32:15 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GdkContentProvider *
|
|
|
|
gdk_drag_get_content (GdkDrag *drag);
|
|
|
|
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GdkSurface * gdk_drag_get_surface (GdkDrag *drag);
|
|
|
|
|
2005-06-12 05:32:25 +00:00
|
|
|
G_END_DECLS
|
1999-10-01 23:18:30 +00:00
|
|
|
|
2000-06-19 03:00:56 +00:00
|
|
|
#endif /* __GDK_DND_H__ */
|