|
NAMEGtk2::TreePath - wrapper for GtkTreePathHIERARCHYGlib::Boxed +----Gtk2::TreePath METHODStreepath or undef = Gtk2::TreePath->new ($path=undef)
Create a new path. For convenience, if you pass a value for $path, this is just an alias for "new_from_string". treepath = Gtk2::TreePath->new_firsttreepath or undef = Gtk2::TreePath->new_from_indices ($first_index, ...)
The C API reference docs for this function say to mark the end of the list with a -1, but Perl doesn't need list terminators, so don't do that. This is specially implemented to be available for all gtk+ versions. treepath or undef = Gtk2::TreePath->new_from_string ($path=undef)
$path->append_index ($index_)
integer = $a->compare ($b)
Compares two paths. If $a appears before $b in the three, returns -1. If $b appears before $a, returns 1. If the nodes are equal, returns 0. integer = $path->get_depth$path->downMoves $path to point to the first child of the current path.list = $path->get_indicesReturns a list of integers describing the current indices of $path.boolean = $path->is_ancestor ($descendant)
boolean = $path->is_descendant ($ancestor)
$path->nextMoves $path to point to the next node at the current depth.$path->prepend_index ($index_)
boolean = $path->prevMoves $path to point to the previous node at the current depth, if it exists. Returns true if there is a previous node and $path was modified.string = $path->to_stringboolean = $path->upMoves $path to point to its parent node; returns false if there is no parent.SEE ALSOGtk2, Glib::BoxedCOPYRIGHTCopyright (C) 2003-2011 by the gtk2-perl team.This software is licensed under the LGPL. See Gtk2 for a full notice.
Visit the GSP FreeBSD Man Page Interface. |