Adds tree_item to the tree at position. The first node of the tree is in position zero.
If position is greater than the first empty position, tree_item is put in the first empty position.
Ejemplo 51. Inserting a tree item
<?php dl('php_gtk.' . (strstr(PHP_OS, 'WIN') ? 'dll' : 'so')); // Create a tree $tree =& new GtkTree; // Create a tree item $treeItem =& new GtkTreeItem('A tree item'); // Insert the tree item into the 100th position. $tree->insert($treeItem, 100); // Check the position of the tree item. echo $tree->child_position($treeItem); // Outputs 0 ?> |