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

NAME

6       Gtk2::TreeStore
7

HIERARCHY

9         Glib::Object
10         +----Gtk2::TreeStore
11

INTERFACES

13         Gtk2::TreeModel
14         Gtk2::TreeDragSource
15         Gtk2::TreeDragDest
16         Gtk2::TreeSortable
17         Gtk2::Buildable
18

METHODS

20   treestore = Gtk2::TreeStore->new (...)
21           ·   ... (list) of strings, package names
22
23   treeiter = $tree_store->append ($parent)
24           ·   $parent (Gtk2::TreeIter or undef)
25
26   $tree_store->clear
27   $tree_store->set_column_types (...)
28           ·   ... (list) of strings, package names
29
30   $tree_store->set ($iter, $col1, $val1, ...)
31           ·   $iter (Gtk2::TreeIter)
32
33           ·   $col1 (integer) the first column number
34
35           ·   $val1 (scalar) the first value
36
37           ·   ... (list) pairs of columns and values
38
39   treeiter = $tree_store->insert ($parent, $position)
40           ·   $parent (Gtk2::TreeIter or undef)
41
42           ·   $position (integer)
43
44   treeiter = $tree_store->insert_after ($parent, $sibling)
45           ·   $parent (Gtk2::TreeIter or undef)
46
47           ·   $sibling (Gtk2::TreeIter or undef)
48
49   treeiter = $tree_store->insert_before ($parent, $sibling)
50           ·   $parent (Gtk2::TreeIter or undef)
51
52           ·   $sibling (Gtk2::TreeIter or undef)
53
54   treeiter = $tree_store->insert_with_values ($parent, $position, ...)
55           ·   $parent (Gtk2::TreeIter or undef)
56
57           ·   $position (integer) position to insert the new row
58
59           ·   ... (list) pairs of column numbers and values
60
61           Like doing insert followed by set, except that insert_with_values
62           emits only the row-inserted signal, rather than row-inserted, row-
63           changed, and, if the store is sorted, rows-reordered as in the
64           multiple-operation case.  Since emitting the rows-reordered signal
65           repeatedly can affect the performance of the program,
66           insert_with_values should generally be preferred when inserting
67           rows in a sorted tree store.
68
69           Since: gtk+ 2.10
70
71   boolean = $tree_store->is_ancestor ($iter, $descendant)
72           ·   $iter (Gtk2::TreeIter)
73
74           ·   $descendant (Gtk2::TreeIter)
75
76   integer = $tree_store->iter_depth ($iter)
77           ·   $iter (Gtk2::TreeIter)
78
79   boolean = $tree_store->iter_is_valid ($iter)
80           ·   $iter (Gtk2::TreeIter)
81
82           Since: gtk+ 2.2
83
84   $tree_store->move_after ($iter, $position)
85           ·   $iter (Gtk2::TreeIter)
86
87           ·   $position (Gtk2::TreeIter or undef)
88
89           Since: gtk+ 2.2
90
91   $tree_store->move_before ($iter, $position)
92           ·   $iter (Gtk2::TreeIter)
93
94           ·   $position (Gtk2::TreeIter or undef)
95
96           Since: gtk+ 2.2
97
98   treeiter = $tree_store->prepend ($parent)
99           ·   $parent (Gtk2::TreeIter or undef)
100
101   boolean = $tree_store->remove ($iter)
102           ·   $iter (Gtk2::TreeIter)
103
104   $tree_store->reorder ($parent, ...)
105           ·   $parent (Gtk2::TreeIter or undef)
106
107           ·   ... (list) of integer's, the new_order
108
109           Since: gtk+ 2.2
110
111   $tree_store->swap ($a, $b)
112           ·   $a (Gtk2::TreeIter)
113
114           ·   $b (Gtk2::TreeIter)
115
116           Since: gtk+ 2.2
117
118   $tree_store->set_value ($iter, $col1, $val1, ...)
119           ·   $iter (Gtk2::TreeIter)
120
121           ·   $col1 (integer) the first column number
122
123           ·   $val1 (scalar) the first value
124
125           ·   ... (list) pairs of columns and values
126
127           Alias for Gtk2::TreeStore::set().
128

SEE ALSO

130       Gtk2, Glib::Object
131
133       Copyright (C) 2003-2008 by the gtk2-perl team.
134
135       This software is licensed under the LGPL.  See Gtk2 for a full notice.
136
137
138
139perl v5.12.0                      2010-05-02                Gtk2::TreeStore(3)
Impressum