Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

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

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

NAME
Gtk2::TreeIter HIERARCHY
Glib::Boxed +----Gtk2::TreeIter SYNOPSIS
package MyCustomListStore; use Glib::Object::Subclass Glib::Object::, interfaces => [ Gtk2::TreeModel:: ], ; ... sub set { my $list = shift; my $iter = shift; # a Gtk2::TreeIter # this method needs access to the internal representation # of the iter, as the model implementation sees it: my $arrayref = $iter->to_arrayref ($list->{stamp}); ... } DESCRIPTION
The methods described here are only of use in custom Gtk2::TreeModel implementations; they are not safe to be used on generic iters or in application code. See "CREATING A CUSTOM TREE MODEL" in Gtk2::TreeModel for more information. METHODS
treeiter = Gtk2::TreeIter->new_from_arrayref ($sv_iter) o $sv_iter (scalar) Create a new Gtk2::TreeIter from the "internal" array reference representation used by custom Gtk2::TreeModel implementations. This is the complement to Gtk2::TreeIter::to_arrayref(), and is used when you need to create and return a new iter from a method that is not one of the Gtk2::TreeModelIface interface vfuncs. See "CREATING A CUSTOM TREE MODEL" in Gtk2::TreeModel for more information. $iter->set ($from) o $from (scalar) Set the contents of $iter. $from can be either another Gtk2::TreeIter or an "internal" arrayref form as above. Often you create a new iter instead of modifying an existing one, but "set" lets you to implement things in the style of the "remove" method of Gtk2::ListStore and Gtk2::TreeStore. A set can also explicitly invalidate an iter by zapping its stamp, so nobody can accidentally use it again. $iter->set ([0,0,undef,undef]); scalar = $iter->to_arrayref ($stamp) o $stamp (integer) Convert a boxed Gtk2::TreeIter reference into the "internal" array reference representation used by custom Gtk2::TreeModel implementations. This is necessary when you need to get to the data inside your iters in methods which are not the vfuncs of the Gtk2::TreeModelIface interface. The stamp must match; this protects the binding code from potential memory faults when attempting to convert an iter that doesn't actually belong to your model. See "CREATING A CUSTOM TREE MODEL" in Gtk2::TreeModel for more information. SEE ALSO
Gtk2, Glib::Boxed, Gtk2::TreeModel 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::TreeIter(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