TreePath
Object Hierarchy:
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "gtk_tree_path_get_type ()" ) ]
[ Compact ]
public class TreePath
An opaque structure representing a path to a row in a model.
Content:
Creation methods:
Methods:
- public void append_index (int index_)
Appends a new index to a path.
- public int compare (TreePath b)
Compares two paths.
- public TreePath copy ()
Creates a new `GtkTreePath` as a copy of
this.
- public void down ()
Moves this to point to the first
child of the current path.
- public void free ()
Frees this.
- public int get_depth ()
Returns the current depth of this.
- public unowned int[]? get_indices ()
Returns the current indices of this.
- public bool is_ancestor (TreePath descendant)
Returns true if descendant
is a descendant of this.
- public bool is_descendant (TreePath ancestor)
Returns true if
this is a descendant of ancestor
.
- public void next ()
Moves the this to point to the next
node at the current depth.
- public void prepend_index (int index_)
Prepends a new index to a path.
- public bool prev ()
Moves the this to point to the
previous node at the current depth, if it exists.
- public string? to_string ()
Generates a string representation of the path.
- public bool up ()
Moves the this to point to its
parent node, if it has a parent.