TreePath
Object Hierarchy:
Description:
[ Compact ]
public class TreePath
public class TreePath
Namespace: Gtk
Package: gtk+-3.0
Content:
Creation methods:
- public TreePath ()
Creates a new TreePath-struct.
- public TreePath.first ()
Creates a new TreePath-struct.
- public TreePath.from_indices (...)
Creates a new path with
first_index
andvarargs
as indices. - public TreePath.from_indicesv (int[] indices)
Creates a new path with the given
indices
array ofindices.length
. - public TreePath.from_string (string path)
Creates a new TreePath-struct initialized to
path
.
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 TreePath-struct 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.