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