1Gtk2::ListStore(3) User Contributed Perl Documentation Gtk2::ListStore(3)
2
3
4
6 Gtk2::ListStore
7
9 Glib::Object
10 +----Gtk2::ListStore
11
13 Gtk2::TreeModel
14 Gtk2::TreeDragSource
15 Gtk2::TreeDragDest
16 Gtk2::TreeSortable
17 Gtk2::Buildable
18
20 liststore = Gtk2::ListStore->new (...)
21 · ... (list) of strings
22
23 treeiter = $list_store->append
24 $list_store->clear
25 $list_store->set_column_types (...)
26 · ... (list) of strings
27
28 $list_store->set ($iter, $col1, $val1, ...)
29 · $iter (Gtk2::TreeIter)
30
31 · $col1 (integer) the first column number
32
33 · $val1 (scalar) the first value
34
35 · ... (list) pairs of column numbers and values
36
37 treeiter = $list_store->insert ($position)
38 · $position (integer)
39
40 treeiter = $list_store->insert_after ($sibling)
41 · $sibling (Gtk2::TreeIter or undef)
42
43 treeiter = $list_store->insert_before ($sibling)
44 · $sibling (Gtk2::TreeIter or undef)
45
46 treeiter = $list_store->insert_with_values ($position, ...)
47 · $position (integer) position to insert the new row
48
49 · ... (list) pairs of column numbers and values
50
51 Like doing insert followed by set, except that insert_with_values
52 emits only the row-inserted signal, rather than row-inserted, row-
53 changed, and, if the store is sorted, rows-reordered as in the
54 multiple-operation case. Since emitting the rows-reordered signal
55 repeatedly can affect the performance of the program,
56 insert_with_values should generally be preferred when inserting
57 rows in a sorted list store.
58
59 Since: gtk+ 2.6
60
61 boolean = $list_store->iter_is_valid ($iter)
62 · $iter (Gtk2::TreeIter)
63
64 Since: gtk+ 2.2
65
66 $store->move_after ($iter, $position)
67 · $iter (Gtk2::TreeIter)
68
69 · $position (Gtk2::TreeIter or undef)
70
71 Since: gtk+ 2.2
72
73 $store->move_before ($iter, $position)
74 · $iter (Gtk2::TreeIter)
75
76 · $position (Gtk2::TreeIter or undef)
77
78 Since: gtk+ 2.2
79
80 treeiter = $list_store->prepend
81 boolean = $list_store->remove ($iter)
82 · $iter (Gtk2::TreeIter)
83
84 $store->reorder (...)
85 · ... (list) of integers the reordered posistions
86
87 Reorders store to follow the order indicated by new_order. Note
88 that this function only works with unsorted stores.
89
90 A list of position should be passed, one for each item in the list.
91
92 Since: gtk+ 2.2
93
94 $store->swap ($a, $b)
95 · $a (Gtk2::TreeIter)
96
97 · $b (Gtk2::TreeIter)
98
99 Since: gtk+ 2.2
100
101 $list_store->set_value ($iter, $col, $val)
102 · $iter (Gtk2::TreeIter)
103
104 · $val (scalar)
105
106 · $col (integer)
107
109 Gtk2, Glib::Object
110
112 Copyright (C) 2003-2008 by the gtk2-perl team.
113
114 This software is licensed under the LGPL. See Gtk2 for a full notice.
115
116
117
118perl v5.12.0 2010-05-02 Gtk2::ListStore(3)