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

METHODS

19       treestore = Gtk2::TreeStore->new (...)
20
21           * ... (list) of strings, package names
22
23       treeiter = $tree_store->append ($parent)
24
25           * $parent (Gtk2::TreeIter or undef)
26
27       $tree_store->clear
28
29       $tree_store->set_column_types (...)
30
31           * ... (list) of strings, package names
32
33       $tree_store->set ($iter, $col1, $val1, ...)
34
35           * $iter (Gtk2::TreeIter)
36           * $col1 (integer) the first column number
37           * $val1 (scalar) the first value
38           * ... (list) pairs of columns and values
39
40       treeiter = $tree_store->insert ($parent, $position)
41
42           * $parent (Gtk2::TreeIter or undef)
43           * $position (integer)
44
45       treeiter = $tree_store->insert_after ($parent, $sibling)
46
47           * $parent (Gtk2::TreeIter or undef)
48           * $sibling (Gtk2::TreeIter or undef)
49
50       treeiter = $tree_store->insert_before ($parent, $sibling)
51
52           * $parent (Gtk2::TreeIter or undef)
53           * $sibling (Gtk2::TreeIter or undef)
54
55       treeiter = $tree_store->insert_with_values ($parent, $position, ...)
56
57           * $parent (Gtk2::TreeIter or undef)
58           * $position (integer) position to insert the new row
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,
63           row-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       boolean = $tree_store->is_ancestor ($iter, $descendant)
70
71           * $iter (Gtk2::TreeIter)
72           * $descendant (Gtk2::TreeIter)
73
74       integer = $tree_store->iter_depth ($iter)
75
76           * $iter (Gtk2::TreeIter)
77
78       boolean = $tree_store->iter_is_valid ($iter)
79
80           * $iter (Gtk2::TreeIter)
81
82       $tree_store->move_after ($iter, $position)
83
84           * $iter (Gtk2::TreeIter)
85           * $position (Gtk2::TreeIter)
86
87       $tree_store->move_before ($iter, $position)
88
89           * $iter (Gtk2::TreeIter)
90           * $position (Gtk2::TreeIter)
91
92       treeiter = $tree_store->prepend ($parent)
93
94           * $parent (Gtk2::TreeIter or undef)
95
96       boolean = $tree_store->remove ($iter)
97
98           * $iter (Gtk2::TreeIter)
99
100       $tree_store->reorder ($parent, ...)
101
102           * $parent (Gtk2::TreeIter or undef)
103           * ... (list) of integer's, the new_order
104
105       $tree_store->swap ($a, $b)
106
107           * $a (Gtk2::TreeIter)
108           * $b (Gtk2::TreeIter)
109
110       $tree_store->set_value ($iter, $col1, $val1, ...)
111
112           * $iter (Gtk2::TreeIter)
113           * $col1 (integer) the first column number
114           * $val1 (scalar) the first value
115           * ... (list) pairs of columns and values
116
117           Alias for Gtk2::TreeStore::set().
118

SEE ALSO

120       Gtk2, Glib::Object
121
123       Copyright (C) 2003-2007 by the gtk2-perl team.
124
125       This software is licensed under the LGPL.  See Gtk2 for a full notice.
126
127
128
129perl v5.8.8                       2007-03-18                Gtk2::TreeStore(3)
Impressum