1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD 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
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19 
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 
25 module gtk.TreeDragDestIF;
26 
27 private import gtk.SelectionData;
28 private import gtk.TreePath;
29 private import gtkc.gtk;
30 public  import gtkc.gtktypes;
31 
32 
33 /** */
34 public interface TreeDragDestIF{
35 	/** Get the main Gtk struct */
36 	public GtkTreeDragDest* getTreeDragDestStruct();
37 
38 	/** the main Gtk struct as a void* */
39 	protected void* getStruct();
40 
41 
42 	/**
43 	 * Asks the #GtkTreeDragDest to insert a row before the path @dest,
44 	 * deriving the contents of the row from @selection_data. If @dest is
45 	 * outside the tree so that inserting before it is impossible, %FALSE
46 	 * will be returned. Also, %FALSE may be returned if the new row is
47 	 * not created for some model-specific reason.  Should robustly handle
48 	 * a @dest no longer found in the model!
49 	 *
50 	 * Params:
51 	 *     dest = row to drop in front of
52 	 *     selectionData = data to drop
53 	 *
54 	 * Return: whether a new row was created before position @dest
55 	 */
56 	public bool dragDataReceived(TreePath dest, SelectionData selectionData);
57 
58 	/**
59 	 * Determines whether a drop is possible before the given @dest_path,
60 	 * at the same depth as @dest_path. i.e., can we drop the data in
61 	 * @selection_data at that location. @dest_path does not have to
62 	 * exist; the return value will almost certainly be %FALSE if the
63 	 * parent of @dest_path doesn’t exist, though.
64 	 *
65 	 * Params:
66 	 *     destPath = destination row
67 	 *     selectionData = the data being dragged
68 	 *
69 	 * Return: %TRUE if a drop is possible before @dest_path
70 	 */
71 	public bool rowDropPossible(TreePath destPath, SelectionData selectionData);
72 }