1Gtk2::TreeModelFilter(3U)ser Contributed Perl DocumentatiGotnk2::TreeModelFilter(3)
2
3
4
6 Gtk2::TreeModelFilter
7
9 Glib::Object
10 +----Gtk2::TreeModelFilter
11
13 Gtk2::TreeModel
14 Gtk2::TreeDragSource
15
17 treemodel = Gtk2::TreeModelFilter->new ($child_model, $root=undef)
18 · $child_model (Gtk2::TreeModel)
19
20 · $root (Gtk2::TreePath or undef)
21
22 $filter->clear_cache
23 treeiter = $filter->convert_child_iter_to_iter ($child_iter)
24 · $child_iter (Gtk2::TreeIter)
25
26 treepath or undef = $filter->convert_child_path_to_path ($child_path)
27 · $child_path (Gtk2::TreePath)
28
29 treeiter = $filter->convert_iter_to_child_iter ($filter_iter)
30 · $filter_iter (Gtk2::TreeIter)
31
32 treepath or undef = $path->convert_path_to_child_path ($filter_path)
33 · $filter_path (Gtk2::TreePath)
34
35 treemodel = $filter->get_model
36 $filter->set_modify_func ($types, $func=undef, $data=undef)
37 · $types (scalar) type name string for one column, or an arrayref
38 of type names for multiple columns
39
40 · $func (scalar)
41
42 · $data (scalar)
43
44 func is called as
45
46 sub myfunc {
47 my ($filter, $iter, $column_num, $data) = @_;
48 ...
49
50 and should return the value from the filtered model that iter row
51 and column number.
52
53 $filter->refilter
54 $filter->set_visible_column ($column)
55 · $column (integer)
56
57 $filter->set_visible_func ($func, $data=undef)
58 · $func (scalar)
59
60 · $data (scalar)
61
63 'child-model' (Gtk2::TreeModel : readable / writable / construct-only /
64 private)
65 The model for the filtermodel to filter
66
67 'virtual-root' (Gtk2::TreePath : readable / writable / construct-only /
68 private)
69 The virtual root (relative to the child model) for this filtermodel
70
72 Gtk2, Glib::Object
73
75 Copyright (C) 2003-2008 by the gtk2-perl team.
76
77 This software is licensed under the LGPL. See Gtk2 for a full notice.
78
79
80
81perl v5.12.0 2010-05-02 Gtk2::TreeModelFilter(3)