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.TreeModelIF;
26 
27 private import glib.Str;
28 private import gobject.ObjectG;
29 private import gobject.Signals;
30 private import gobject.Value;
31 private import gtk.TreeIter;
32 private import gtk.TreeModel;
33 private import gtk.TreeModelIF;
34 private import gtk.TreePath;
35 public  import gtkc.gdktypes;
36 private import gtkc.gtk;
37 public  import gtkc.gtktypes;
38 private import std.algorithm;
39 
40 
41 /**
42  * The #GtkTreeModel interface defines a generic tree interface for
43  * use by the #GtkTreeView widget. It is an abstract interface, and
44  * is designed to be usable with any appropriate data structure. The
45  * programmer just has to implement this interface on their own data
46  * type for it to be viewable by a #GtkTreeView widget.
47  * 
48  * The model is represented as a hierarchical tree of strongly-typed,
49  * columned data. In other words, the model can be seen as a tree where
50  * every node has different values depending on which column is being
51  * queried. The type of data found in a column is determined by using
52  * the GType system (ie. #G_TYPE_INT, #GTK_TYPE_BUTTON, #G_TYPE_POINTER,
53  * etc). The types are homogeneous per column across all nodes. It is
54  * important to note that this interface only provides a way of examining
55  * a model and observing changes. The implementation of each individual
56  * model decides how and if changes are made.
57  * 
58  * In order to make life simpler for programmers who do not need to
59  * write their own specialized model, two generic models are provided
60  * — the #GtkTreeStore and the #GtkListStore. To use these, the
61  * developer simply pushes data into these models as necessary. These
62  * models provide the data structure as well as all appropriate tree
63  * interfaces. As a result, implementing drag and drop, sorting, and
64  * storing data is trivial. For the vast majority of trees and lists,
65  * these two models are sufficient.
66  * 
67  * Models are accessed on a node/column level of granularity. One can
68  * query for the value of a model at a certain node and a certain
69  * column on that node. There are two structures used to reference a
70  * particular node in a model. They are the #GtkTreePath-struct and
71  * the #GtkTreeIter-struct (“iter” is short for iterator). Most of the
72  * interface consists of operations on a #GtkTreeIter-struct.
73  * 
74  * A path is essentially a potential node. It is a location on a model
75  * that may or may not actually correspond to a node on a specific
76  * model. The #GtkTreePath-struct can be converted into either an
77  * array of unsigned integers or a string. The string form is a list
78  * of numbers separated by a colon. Each number refers to the offset
79  * at that level. Thus, the path `0` refers to the root
80  * node and the path `2:4` refers to the fifth child of
81  * the third node.
82  * 
83  * By contrast, a #GtkTreeIter-struct is a reference to a specific node on
84  * a specific model. It is a generic struct with an integer and three
85  * generic pointers. These are filled in by the model in a model-specific
86  * way. One can convert a path to an iterator by calling
87  * gtk_tree_model_get_iter(). These iterators are the primary way
88  * of accessing a model and are similar to the iterators used by
89  * #GtkTextBuffer. They are generally statically allocated on the
90  * stack and only used for a short time. The model interface defines
91  * a set of operations using them for navigating the model.
92  * 
93  * It is expected that models fill in the iterator with private data.
94  * For example, the #GtkListStore model, which is internally a simple
95  * linked list, stores a list node in one of the pointers. The
96  * #GtkTreeModelSort stores an array and an offset in two of the
97  * pointers. Additionally, there is an integer field. This field is
98  * generally filled with a unique stamp per model. This stamp is for
99  * catching errors resulting from using invalid iterators with a model.
100  * 
101  * The lifecycle of an iterator can be a little confusing at first.
102  * Iterators are expected to always be valid for as long as the model
103  * is unchanged (and doesn’t emit a signal). The model is considered
104  * to own all outstanding iterators and nothing needs to be done to
105  * free them from the user’s point of view. Additionally, some models
106  * guarantee that an iterator is valid for as long as the node it refers
107  * to is valid (most notably the #GtkTreeStore and #GtkListStore).
108  * Although generally uninteresting, as one always has to allow for
109  * the case where iterators do not persist beyond a signal, some very
110  * important performance enhancements were made in the sort model.
111  * As a result, the #GTK_TREE_MODEL_ITERS_PERSIST flag was added to
112  * indicate this behavior.
113  * 
114  * To help show some common operation of a model, some examples are
115  * provided. The first example shows three ways of getting the iter at
116  * the location `3:2:5`. While the first method shown is
117  * easier, the second is much more common, as you often get paths from
118  * callbacks.
119  * 
120  * ## Acquiring a #GtkTreeIter-struct
121  * 
122  * |[<!-- language="C" -->
123  * // Three ways of getting the iter pointing to the location
124  * GtkTreePath *path;
125  * GtkTreeIter iter;
126  * GtkTreeIter parent_iter;
127  * 
128  * // get the iterator from a string
129  * gtk_tree_model_get_iter_from_string (model,
130  * &iter,
131  * "3:2:5");
132  * 
133  * // get the iterator from a path
134  * path = gtk_tree_path_new_from_string ("3:2:5");
135  * gtk_tree_model_get_iter (model, &iter, path);
136  * gtk_tree_path_free (path);
137  * 
138  * // walk the tree to find the iterator
139  * gtk_tree_model_iter_nth_child (model, &iter,
140  * NULL, 3);
141  * parent_iter = iter;
142  * gtk_tree_model_iter_nth_child (model, &iter,
143  * &parent_iter, 2);
144  * parent_iter = iter;
145  * gtk_tree_model_iter_nth_child (model, &iter,
146  * &parent_iter, 5);
147  * ]|
148  * 
149  * This second example shows a quick way of iterating through a list
150  * and getting a string and an integer from each row. The
151  * populate_model() function used below is not
152  * shown, as it is specific to the #GtkListStore. For information on
153  * how to write such a function, see the #GtkListStore documentation.
154  * 
155  * ## Reading data from a #GtkTreeModel
156  * 
157  * |[<!-- language="C" -->
158  * enum
159  * {
160  * STRING_COLUMN,
161  * INT_COLUMN,
162  * N_COLUMNS
163  * };
164  * 
165  * ...
166  * 
167  * GtkTreeModel *list_store;
168  * GtkTreeIter iter;
169  * gboolean valid;
170  * gint row_count = 0;
171  * 
172  * // make a new list_store
173  * list_store = gtk_list_store_new (N_COLUMNS,
174  * G_TYPE_STRING,
175  * G_TYPE_INT);
176  * 
177  * // Fill the list store with data
178  * populate_model (list_store);
179  * 
180  * // Get the first iter in the list, check it is valid and walk
181  * // through the list, reading each row.
182  * 
183  * valid = gtk_tree_model_get_iter_first (list_store,
184  * &iter);
185  * while (valid)
186  * {
187  * gchar *str_data;
188  * gint   int_data;
189  * 
190  * // Make sure you terminate calls to gtk_tree_model_get() with a “-1” value
191  * gtk_tree_model_get (list_store, &iter,
192  * STRING_COLUMN, &str_data,
193  * INT_COLUMN, &int_data,
194  * -1);
195  * 
196  * // Do something with the data
197  * g_print ("Row %d: (%s,%d)\n",
198  * row_count, str_data, int_data);
199  * g_free (str_data);
200  * 
201  * valid = gtk_tree_model_iter_next (list_store,
202  * &iter);
203  * row_count++;
204  * }
205  * ]|
206  * 
207  * The #GtkTreeModel interface contains two methods for reference
208  * counting: gtk_tree_model_ref_node() and gtk_tree_model_unref_node().
209  * These two methods are optional to implement. The reference counting
210  * is meant as a way for views to let models know when nodes are being
211  * displayed. #GtkTreeView will take a reference on a node when it is
212  * visible, which means the node is either in the toplevel or expanded.
213  * Being displayed does not mean that the node is currently directly
214  * visible to the user in the viewport. Based on this reference counting
215  * scheme a caching model, for example, can decide whether or not to cache
216  * a node based on the reference count. A file-system based model would
217  * not want to keep the entire file hierarchy in memory, but just the
218  * folders that are currently expanded in every current view.
219  * 
220  * When working with reference counting, the following rules must be taken
221  * into account:
222  * 
223  * - Never take a reference on a node without owning a reference on its parent.
224  * This means that all parent nodes of a referenced node must be referenced
225  * as well.
226  * 
227  * - Outstanding references on a deleted node are not released. This is not
228  * possible because the node has already been deleted by the time the
229  * row-deleted signal is received.
230  * 
231  * - Models are not obligated to emit a signal on rows of which none of its
232  * siblings are referenced. To phrase this differently, signals are only
233  * required for levels in which nodes are referenced. For the root level
234  * however, signals must be emitted at all times (however the root level
235  * is always referenced when any view is attached).
236  */
237 public interface TreeModelIF{
238 	/** Get the main Gtk struct */
239 	public GtkTreeModel* getTreeModelStruct();
240 
241 	/** the main Gtk struct as a void* */
242 	protected void* getStruct();
243 
244 	/**
245 	 * Get the value of a column as a char array.
246 	 * this is the same calling getValue and get the string from the value object
247 	 */
248 	string getValueString(TreeIter iter, int column);
249 	
250 	/**
251 	 * Get the value of a column as a char array.
252 	 * this is the same calling getValue and get the int from the value object
253 	 */
254 	int getValueInt(TreeIter iter, int column);
255 	
256 	/**
257 	 * Sets iter to a valid iterator pointing to path.
258 	 * Params:
259 	 *  iter = The uninitialized GtkTreeIter.
260 	 *  path = The GtkTreePath.
261 	 * Returns:
262 	 *  TRUE, if iter was set.
263 	 */
264 	public int getIter(TreeIter iter, TreePath path);
265 	
266 	/**
267 	 * Initializes and sets value to that at column.
268 	 * When done with value, g_value_unset() needs to be called
269 	 * to free any allocated memory.
270 	 * Params:
271 	 * iter = The GtkTreeIter.
272 	 * column = The column to lookup the value at.
273 	 * value = (inout) (transfer none) An empty GValue to set.
274 	 */
275 	public Value getValue(TreeIter iter, int column, Value value = null);
276 
277 	/**
278 	 */
279 
280 	/**
281 	 * Creates a new #GtkTreeModel, with @child_model as the child_model
282 	 * and @root as the virtual root.
283 	 *
284 	 * Params:
285 	 *     root = A #GtkTreePath or %NULL.
286 	 *
287 	 * Return: A new #GtkTreeModel.
288 	 *
289 	 * Since: 2.4
290 	 */
291 	public TreeModelIF filterNew(TreePath root);
292 
293 	/**
294 	 * Calls func on each node in model in a depth-first fashion.
295 	 *
296 	 * If @func returns %TRUE, then the tree ceases to be walked,
297 	 * and gtk_tree_model_foreach() returns.
298 	 *
299 	 * Params:
300 	 *     func = a function to be called on each row
301 	 *     userData = user data to passed to @func
302 	 */
303 	public void foreac(GtkTreeModelForeachFunc func, void* userData);
304 
305 	/**
306 	 * Returns the type of the column.
307 	 *
308 	 * Params:
309 	 *     index = the column index
310 	 *
311 	 * Return: the type of the column
312 	 */
313 	public GType getColumnType(int index);
314 
315 	/**
316 	 * Returns a set of flags supported by this interface.
317 	 *
318 	 * The flags are a bitwise combination of #GtkTreeModelFlags.
319 	 * The flags supported should not change during the lifetime
320 	 * of the @tree_model.
321 	 *
322 	 * Return: the flags supported by this interface
323 	 */
324 	public GtkTreeModelFlags getFlags();
325 
326 	/**
327 	 * Initializes @iter with the first iterator in the tree
328 	 * (the one at the path "0") and returns %TRUE. Returns
329 	 * %FALSE if the tree is empty.
330 	 *
331 	 * Params:
332 	 *     iter = the uninitialized #GtkTreeIter-struct
333 	 *
334 	 * Return: %TRUE, if @iter was set
335 	 */
336 	public bool getIterFirst(out TreeIter iter);
337 
338 	/**
339 	 * Sets @iter to a valid iterator pointing to @path_string, if it
340 	 * exists. Otherwise, @iter is left invalid and %FALSE is returned.
341 	 *
342 	 * Params:
343 	 *     iter = an uninitialized #GtkTreeIter-struct
344 	 *     pathString = a string representation of a #GtkTreePath-struct
345 	 *
346 	 * Return: %TRUE, if @iter was set
347 	 */
348 	public bool getIterFromString(out TreeIter iter, string pathString);
349 
350 	/**
351 	 * Returns the number of columns supported by @tree_model.
352 	 *
353 	 * Return: the number of columns
354 	 */
355 	public int getNColumns();
356 
357 	/**
358 	 * Returns a newly-created #GtkTreePath-struct referenced by @iter.
359 	 *
360 	 * This path should be freed with gtk_tree_path_free().
361 	 *
362 	 * Params:
363 	 *     iter = the #GtkTreeIter-struct
364 	 *
365 	 * Return: a newly-created #GtkTreePath-struct
366 	 */
367 	public TreePath getPath(TreeIter iter);
368 
369 	/**
370 	 * Generates a string representation of the iter.
371 	 *
372 	 * This string is a “:” separated list of numbers.
373 	 * For example, “4:10:0:3” would be an acceptable
374 	 * return value for this string.
375 	 *
376 	 * Params:
377 	 *     iter = a #GtkTreeIter-struct
378 	 *
379 	 * Return: a newly-allocated string.
380 	 *     Must be freed with g_free().
381 	 *
382 	 * Since: 2.2
383 	 */
384 	public string getStringFromIter(TreeIter iter);
385 
386 	/**
387 	 * See gtk_tree_model_get(), this version takes a va_list
388 	 * for language bindings to use.
389 	 *
390 	 * Params:
391 	 *     iter = a row in @tree_model
392 	 *     varArgs = va_list of column/return location pairs
393 	 */
394 	public void getValist(TreeIter iter, void* varArgs);
395 
396 	/**
397 	 * Sets @iter to point to the first child of @parent.
398 	 *
399 	 * If @parent has no children, %FALSE is returned and @iter is
400 	 * set to be invalid. @parent will remain a valid node after this
401 	 * function has been called.
402 	 *
403 	 * If @parent is %NULL returns the first node, equivalent to
404 	 * `gtk_tree_model_get_iter_first (tree_model, iter);`
405 	 *
406 	 * Params:
407 	 *     iter = the new #GtkTreeIter-struct to be set to the child
408 	 *     parent = the #GtkTreeIter-struct, or %NULL
409 	 *
410 	 * Return: %TRUE, if @iter has been set to the first child
411 	 */
412 	public bool iterChildren(out TreeIter iter, TreeIter parent);
413 
414 	/**
415 	 * Returns %TRUE if @iter has children, %FALSE otherwise.
416 	 *
417 	 * Params:
418 	 *     iter = the #GtkTreeIter-struct to test for children
419 	 *
420 	 * Return: %TRUE if @iter has children
421 	 */
422 	public bool iterHasChild(TreeIter iter);
423 
424 	/**
425 	 * Returns the number of children that @iter has.
426 	 *
427 	 * As a special case, if @iter is %NULL, then the number
428 	 * of toplevel nodes is returned.
429 	 *
430 	 * Params:
431 	 *     iter = the #GtkTreeIter-struct, or %NULL
432 	 *
433 	 * Return: the number of children of @iter
434 	 */
435 	public int iterNChildren(TreeIter iter);
436 
437 	/**
438 	 * Sets @iter to point to the node following it at the current level.
439 	 *
440 	 * If there is no next @iter, %FALSE is returned and @iter is set
441 	 * to be invalid.
442 	 *
443 	 * Params:
444 	 *     iter = the #GtkTreeIter-struct
445 	 *
446 	 * Return: %TRUE if @iter has been changed to the next node
447 	 */
448 	public bool iterNext(TreeIter iter);
449 
450 	/**
451 	 * Sets @iter to be the child of @parent, using the given index.
452 	 *
453 	 * The first index is 0. If @n is too big, or @parent has no children,
454 	 * @iter is set to an invalid iterator and %FALSE is returned. @parent
455 	 * will remain a valid node after this function has been called. As a
456 	 * special case, if @parent is %NULL, then the @n-th root node
457 	 * is set.
458 	 *
459 	 * Params:
460 	 *     iter = the #GtkTreeIter-struct to set to the nth child
461 	 *     parent = the #GtkTreeIter-struct to get the child from, or %NULL.
462 	 *     n = the index of the desired child
463 	 *
464 	 * Return: %TRUE, if @parent has an @n-th child
465 	 */
466 	public bool iterNthChild(out TreeIter iter, TreeIter parent, int n);
467 
468 	/**
469 	 * Sets @iter to be the parent of @child.
470 	 *
471 	 * If @child is at the toplevel, and doesn’t have a parent, then
472 	 * @iter is set to an invalid iterator and %FALSE is returned.
473 	 * @child will remain a valid node after this function has been
474 	 * called.
475 	 *
476 	 * @iter will be initialized before the lookup is performed, so @child
477 	 * and @iter cannot point to the same memory location.
478 	 *
479 	 * Params:
480 	 *     iter = the new #GtkTreeIter-struct to set to the parent
481 	 *     child = the #GtkTreeIter-struct
482 	 *
483 	 * Return: %TRUE, if @iter is set to the parent of @child
484 	 */
485 	public bool iterParent(out TreeIter iter, TreeIter child);
486 
487 	/**
488 	 * Sets @iter to point to the previous node at the current level.
489 	 *
490 	 * If there is no previous @iter, %FALSE is returned and @iter is
491 	 * set to be invalid.
492 	 *
493 	 * Params:
494 	 *     iter = the #GtkTreeIter-struct
495 	 *
496 	 * Return: %TRUE if @iter has been changed to the previous node
497 	 *
498 	 * Since: 3.0
499 	 */
500 	public bool iterPrevious(TreeIter iter);
501 
502 	/**
503 	 * Lets the tree ref the node.
504 	 *
505 	 * This is an optional method for models to implement.
506 	 * To be more specific, models may ignore this call as it exists
507 	 * primarily for performance reasons.
508 	 *
509 	 * This function is primarily meant as a way for views to let
510 	 * caching models know when nodes are being displayed (and hence,
511 	 * whether or not to cache that node). Being displayed means a node
512 	 * is in an expanded branch, regardless of whether the node is currently
513 	 * visible in the viewport. For example, a file-system based model
514 	 * would not want to keep the entire file-hierarchy in memory,
515 	 * just the sections that are currently being displayed by
516 	 * every current view.
517 	 *
518 	 * A model should be expected to be able to get an iter independent
519 	 * of its reffed state.
520 	 *
521 	 * Params:
522 	 *     iter = the #GtkTreeIter-struct
523 	 */
524 	public void refNode(TreeIter iter);
525 
526 	/**
527 	 * Emits the #GtkTreeModel::row-changed signal on @tree_model.
528 	 *
529 	 * Params:
530 	 *     path = a #GtkTreePath-struct pointing to the changed row
531 	 *     iter = a valid #GtkTreeIter-struct pointing to the changed row
532 	 */
533 	public void rowChanged(TreePath path, TreeIter iter);
534 
535 	/**
536 	 * Emits the #GtkTreeModel::row-deleted signal on @tree_model.
537 	 *
538 	 * This should be called by models after a row has been removed.
539 	 * The location pointed to by @path should be the location that
540 	 * the row previously was at. It may not be a valid location anymore.
541 	 *
542 	 * Nodes that are deleted are not unreffed, this means that any
543 	 * outstanding references on the deleted node should not be released.
544 	 *
545 	 * Params:
546 	 *     path = a #GtkTreePath-struct pointing to the previous location of
547 	 *         the deleted row
548 	 */
549 	public void rowDeleted(TreePath path);
550 
551 	/**
552 	 * Emits the #GtkTreeModel::row-has-child-toggled signal on
553 	 * @tree_model. This should be called by models after the child
554 	 * state of a node changes.
555 	 *
556 	 * Params:
557 	 *     path = a #GtkTreePath-struct pointing to the changed row
558 	 *     iter = a valid #GtkTreeIter-struct pointing to the changed row
559 	 */
560 	public void rowHasChildToggled(TreePath path, TreeIter iter);
561 
562 	/**
563 	 * Emits the #GtkTreeModel::row-inserted signal on @tree_model.
564 	 *
565 	 * Params:
566 	 *     path = a #GtkTreePath-struct pointing to the inserted row
567 	 *     iter = a valid #GtkTreeIter-struct pointing to the inserted row
568 	 */
569 	public void rowInserted(TreePath path, TreeIter iter);
570 
571 	/**
572 	 * Emits the #GtkTreeModel::rows-reordered signal on @tree_model.
573 	 *
574 	 * This should be called by models when their rows have been
575 	 * reordered.
576 	 *
577 	 * Params:
578 	 *     path = a #GtkTreePath-struct pointing to the tree node whose children
579 	 *         have been reordered
580 	 *     iter = a valid #GtkTreeIter-struct pointing to the node whose children
581 	 *         have been reordered, or %NULL if the depth of @path is 0
582 	 *     newOrder = an array of integers mapping the current position of
583 	 *         each child to its old position before the re-ordering,
584 	 *         i.e. @new_order`[newpos] = oldpos`
585 	 */
586 	public void rowsReordered(TreePath path, TreeIter iter, int* newOrder);
587 
588 	/**
589 	 * Emits the #GtkTreeModel::rows-reordered signal on @tree_model.
590 	 *
591 	 * This should be called by models when their rows have been
592 	 * reordered.
593 	 *
594 	 * Params:
595 	 *     path = a #GtkTreePath-struct pointing to the tree node whose children
596 	 *         have been reordered
597 	 *     iter = a valid #GtkTreeIter-struct pointing to the node
598 	 *         whose children have been reordered, or %NULL if the depth
599 	 *         of @path is 0
600 	 *     newOrder = an array of integers
601 	 *         mapping the current position of each child to its old
602 	 *         position before the re-ordering,
603 	 *         i.e. @new_order`[newpos] = oldpos`
604 	 *     length = length of @new_order array
605 	 *
606 	 * Since: 3.10
607 	 */
608 	public void rowsReorderedWithLength(TreePath path, TreeIter iter, int[] newOrder);
609 
610 	/**
611 	 * Creates a new #GtkTreeModel, with @child_model as the child model.
612 	 *
613 	 * Return: A new #GtkTreeModel.
614 	 */
615 	public TreeModelIF sortNewWithModel();
616 
617 	/**
618 	 * Lets the tree unref the node.
619 	 *
620 	 * This is an optional method for models to implement.
621 	 * To be more specific, models may ignore this call as it exists
622 	 * primarily for performance reasons. For more information on what
623 	 * this means, see gtk_tree_model_ref_node().
624 	 *
625 	 * Please note that nodes that are deleted are not unreffed.
626 	 *
627 	 * Params:
628 	 *     iter = the #GtkTreeIter-struct
629 	 */
630 	public void unrefNode(TreeIter iter);
631 	/**
632 	 * This signal is emitted when a row in the model has changed.
633 	 *
634 	 * Params:
635 	 *     path = a #GtkTreePath-struct identifying the changed row
636 	 *     iter = a valid #GtkTreeIter-struct pointing to the changed row
637 	 */
638 	gulong addOnRowChanged(void delegate(TreePath, TreeIter, TreeModelIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
639 	;
640 
641 	/**
642 	 * This signal is emitted when a row has been deleted.
643 	 *
644 	 * Note that no iterator is passed to the signal handler,
645 	 * since the row is already deleted.
646 	 *
647 	 * This should be called by models after a row has been removed.
648 	 * The location pointed to by @path should be the location that
649 	 * the row previously was at. It may not be a valid location anymore.
650 	 *
651 	 * Params:
652 	 *     path = a #GtkTreePath-struct identifying the row
653 	 */
654 	gulong addOnRowDeleted(void delegate(TreePath, TreeModelIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
655 	;
656 
657 	/**
658 	 * This signal is emitted when a row has gotten the first child
659 	 * row or lost its last child row.
660 	 *
661 	 * Params:
662 	 *     path = a #GtkTreePath-struct identifying the row
663 	 *     iter = a valid #GtkTreeIter-struct pointing to the row
664 	 */
665 	gulong addOnRowHasChildToggled(void delegate(TreePath, TreeIter, TreeModelIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
666 	;
667 
668 	/**
669 	 * This signal is emitted when a new row has been inserted in
670 	 * the model.
671 	 *
672 	 * Note that the row may still be empty at this point, since
673 	 * it is a common pattern to first insert an empty row, and
674 	 * then fill it with the desired values.
675 	 *
676 	 * Params:
677 	 *     path = a #GtkTreePath-struct identifying the new row
678 	 *     iter = a valid #GtkTreeIter-struct pointing to the new row
679 	 */
680 	gulong addOnRowInserted(void delegate(TreePath, TreeIter, TreeModelIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
681 	;
682 
683 	/**
684 	 * This signal is emitted when the children of a node in the
685 	 * #GtkTreeModel have been reordered.
686 	 *
687 	 * Note that this signal is not emitted
688 	 * when rows are reordered by DND, since this is implemented
689 	 * by removing and then reinserting the row.
690 	 *
691 	 * Params:
692 	 *     path = a #GtkTreePath-struct identifying the tree node whose children
693 	 *         have been reordered
694 	 *     iter = a valid #GtkTreeIter-struct pointing to the node whose children
695 	 *         have been reordered, or %NULL if the depth of @path is 0
696 	 *     newOrder = an array of integers mapping the current position
697 	 *         of each child to its old position before the re-ordering,
698 	 *         i.e. @new_order`[newpos] = oldpos`
699 	 */
700 	gulong addOnRowsReordered(void delegate(TreePath, TreeIter, void*, TreeModelIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
701 	;
702 
703 }