Gtk2::TreeIter man page on Peanut

Man page or keyword search:  
man Server   7435 pages
apropos Keyword Search (all sections)
Output format
Peanut logo
[printable version]

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)

	   ·   $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.

       scalar = $iter->to_arrayref ($stamp)

	   ·   $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-2006 by the gtk2-perl team.

       This software is licensed under the LGPL.  See Gtk2 for a full notice.

perl v5.10.0			  2008-08-29		     Gtk2::TreeIter(3)
[top]

List of man pages available for Peanut

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net