1Gtk2::TreeIter(3)     User Contributed Perl Documentation    Gtk2::TreeIter(3)
2
3
4

NAME

6       Gtk2::TreeIter
7

HIERARCHY

9         Glib::Boxed
10         +----Gtk2::TreeIter
11

SYNOPSIS

13         package MyCustomListStore;
14
15         use Glib::Object::Subclass
16             Glib::Object::,
17             interfaces => [ Gtk2::TreeModel:: ],
18             ;
19
20         ...
21
22         sub set {
23             my $list = shift;
24             my $iter = shift; # a Gtk2::TreeIter
25
26             # this method needs access to the internal representation
27             # of the iter, as the model implementation sees it:
28             my $arrayref = $iter->to_arrayref ($list->{stamp});
29             ...
30         }
31

DESCRIPTION

33       The methods described here are only of use in custom Gtk2::TreeModel
34       implementations; they are not safe to be used on generic iters or in
35       application code.  See "CREATING A CUSTOM TREE MODEL" in
36       Gtk2::TreeModel for more information.
37

METHODS

39       treeiter = Gtk2::TreeIter->new_from_arrayref ($sv_iter)
40
41           * $sv_iter (scalar)
42
43           Create a new Gtk2::TreeIter from the "internal" array reference
44           representation used by custom Gtk2::TreeModel implementations.
45           This is the complement to Gtk2::TreeIter::to_arrayref(), and is
46           used when you need to create and return a new iter from a method
47           that is not one of the Gtk2::TreeModelIface interface vfuncs.  See
48           "CREATING A CUSTOM TREE MODEL" in Gtk2::TreeModel for more informa‐
49           tion.
50
51       scalar = $iter->to_arrayref ($stamp)
52
53           * $stamp (integer)
54
55           Convert a boxed Gtk2::TreeIter reference into the "internal" array
56           reference representation used by custom Gtk2::TreeModel implementa‐
57           tions.  This is necessary when you need to get to the data inside
58           your iters in methods which are not the vfuncs of the
59           Gtk2::TreeModelIface interface.  The stamp must match; this pro‐
60           tects the binding code from potential memory faults when attempting
61           to convert an iter that doesn't actually belong to your model.  See
62           "CREATING A CUSTOM TREE MODEL" in Gtk2::TreeModel for more informa‐
63           tion.
64

SEE ALSO

66       Gtk2, Glib::Boxed, Gtk2::TreeModel
67
69       Copyright (C) 2003-2007 by the gtk2-perl team.
70
71       This software is licensed under the LGPL.  See Gtk2 for a full notice.
72
73
74
75perl v5.8.8                       2007-03-18                 Gtk2::TreeIter(3)
Impressum