gtk.tree_path
Module for [TreePath] class
class TreePath
Types 1
classTreePath : gobject.boxed.Boxed
An opaque structure representing a path to a row in a model.
Methods
gtk.tree_path.TreePath newFirst()Creates a new [gtk.tree_path.TreePath].gtk.tree_path.TreePath newFromIndices(int[] indices)Creates a new path with the given indices array of length.gtk.tree_path.TreePath newFromString(string path)Creates a new [gtk.tree_path.TreePath] initialized to path.void appendIndex(int index)Appends a new index to a path.int compare(gtk.tree_path.TreePath b)Compares two paths.gtk.tree_path.TreePath copy()Creates a new [gtk.treepath.TreePath] as a copy of path. Returns: a new [gtk.treepath.TreePath]void down()Moves path to point to the first child of the current path.int getDepth()Returns the current depth of path. Returns: The depth of pathint[] getIndices()Returns the current indices of path.bool isAncestor(gtk.tree_path.TreePath descendant)Returns true if descendant is a descendant of path.bool isDescendant(gtk.tree_path.TreePath ancestor)Returns true if path is a descendant of ancestor.void next()Moves the path to point to the next node at the current depth.void prependIndex(int index)Prepends a new index to a path.bool prev()Moves the path to point to the previous node at the current depth, if it exists. Returns: true if path has a previous node, and the move was madestring toString_()Generates a string representation of the path.bool up()Moves the path to point to its parent node, if it has a parent. Returns: true if path has a parent, and the move was made