1 /* GIMP - The GNU Image Manipulation Program
2  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3  *
4  * gimpcontainertreeview-dnd.h
5  * Copyright (C) 2003-2009 Michael Natterer <mitch@gimp.org>
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef __GIMP_CONTAINER_TREE_VIEW_DND_H__
22 #define __GIMP_CONTAINER_TREE_VIEW_DND_H__
23 
24 
25 void     gimp_container_tree_view_drag_failed (GtkWidget             *widget,
26                                                GdkDragContext        *context,
27                                                GtkDragResult          result,
28                                                GimpContainerTreeView *tree_view);
29 void     gimp_container_tree_view_drag_leave  (GtkWidget             *widget,
30                                                GdkDragContext        *context,
31                                                guint                  time,
32                                                GimpContainerTreeView *view);
33 gboolean gimp_container_tree_view_drag_motion (GtkWidget             *widget,
34                                                GdkDragContext        *context,
35                                                gint                   x,
36                                                gint                   y,
37                                                guint                  time,
38                                                GimpContainerTreeView *view);
39 gboolean gimp_container_tree_view_drag_drop   (GtkWidget             *widget,
40                                                GdkDragContext        *context,
41                                                gint                   x,
42                                                gint                   y,
43                                                guint                  time,
44                                                GimpContainerTreeView *view);
45 void     gimp_container_tree_view_drag_data_received
46                                               (GtkWidget             *widget,
47                                                GdkDragContext        *context,
48                                                gint                   x,
49                                                gint                   y,
50                                                GtkSelectionData      *selection_data,
51                                                guint                  info,
52                                                guint                  time,
53                                                GimpContainerTreeView *view);
54 
55 gboolean
56 gimp_container_tree_view_real_drop_possible (GimpContainerTreeView   *tree_view,
57                                              GimpDndType              src_type,
58                                              GimpViewable            *src_viewable,
59                                              GimpViewable            *dest_viewable,
60                                              GtkTreePath             *drop_path,
61                                              GtkTreeViewDropPosition  drop_pos,
62                                              GtkTreeViewDropPosition *return_drop_pos,
63                                              GdkDragAction           *return_drag_action);
64 void
65 gimp_container_tree_view_real_drop_viewable (GimpContainerTreeView   *tree_view,
66                                              GimpViewable            *src_viewable,
67                                              GimpViewable            *dest_viewable,
68                                              GtkTreeViewDropPosition  drop_pos);
69 
70 
71 #endif  /*  __GIMP_CONTAINER_TREE_VIEW_DND_H__  */
72