Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gtk2::treepath(3) [suse man page]

Gtk2::TreePath(3)					User Contributed Perl Documentation					 Gtk2::TreePath(3)

NAME
Gtk2::TreePath HIERARCHY
Glib::Boxed +----Gtk2::TreePath METHODS
treepath or undef = Gtk2::TreePath->new ($path=undef) o $path (string) 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_first treepath or undef = Gtk2::TreePath->new_from_indices ($first_index, ...) o $first_index (integer) a non-negative index value o ... (list) of zero or more index values 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) o $path (string) $path->append_index ($index_) o $index_ (integer) integer = $a->compare ($b) o $b (Gtk2::TreePath) 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->down Moves $path to point to the first child of the current path. list = $path->get_indices Returns a list of integers describing the current indices of $path. boolean = $path->is_ancestor ($descendant) o $descendant (Gtk2::TreePath) boolean = $path->is_descendant ($ancestor) o $ancestor (Gtk2::TreePath) $path->next Moves $path to point to the next node at the current depth. $path->prepend_index ($index_) o $index_ (integer) boolean = $path->prev Moves $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_string boolean = $path->up Moves $path to point to its parent node; returns false if there is no parent. SEE ALSO
Gtk2, Glib::Boxed COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.12.1 2010-07-05 Gtk2::TreePath(3)

Check Out this Related Man Page

Gtk2::TreeModelFilter(3)				User Contributed Perl Documentation				  Gtk2::TreeModelFilter(3)

NAME
Gtk2::TreeModelFilter HIERARCHY
Glib::Object +----Gtk2::TreeModelFilter INTERFACES
Gtk2::TreeModel Gtk2::TreeDragSource METHODS
treemodelfilter = Gtk2::TreeModelFilter->new ($child_model, $root=undef) o $child_model (Gtk2::TreeModel) o $root (Gtk2::TreePath or undef) $filter->clear_cache treeiter = $filter->convert_child_iter_to_iter ($child_iter) o $child_iter (Gtk2::TreeIter) treepath or undef = $filter->convert_child_path_to_path ($child_path) o $child_path (Gtk2::TreePath) treeiter = $filter->convert_iter_to_child_iter ($filter_iter) o $filter_iter (Gtk2::TreeIter) treepath or undef = $path->convert_path_to_child_path ($filter_path) o $filter_path (Gtk2::TreePath) treemodel = $filter->get_model $filter->set_modify_func ($types, $func=undef, $data=undef) o $types (scalar) type name string for one column, or an arrayref of type names for multiple columns o $func (scalar) o $data (scalar) func is called as sub myfunc { my ($filter, $iter, $column_num, $data) = @_; ... and should return the value from the filtered model that iter row and column number. $filter->refilter $filter->set_visible_column ($column) o $column (integer) $filter->set_visible_func ($func, $data=undef) o $func (scalar) o $data (scalar) PROPERTIES
'child-model' (Gtk2::TreeModel : readable / writable / construct-only / private) The model for the filtermodel to filter 'virtual-root' (Gtk2::TreePath : readable / writable / construct-only / private) The virtual root (relative to the child model) for this filtermodel SEE ALSO
Gtk2, Glib::Object COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.12.1 2010-07-05 Gtk2::TreeModelFilter(3)
Man Page