1Gtk2::TreeModelFilter(3U)ser Contributed Perl DocumentatiGotnk2::TreeModelFilter(3)
2
3
4

NAME

6       Gtk2::TreeModelFilter - wrapper for GtkTreeModelFilter
7

HIERARCHY

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

INTERFACES

13         Gtk2::TreeModel
14         Gtk2::TreeDragSource
15

METHODS

17   treemodelfilter = 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 of
38           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 and
51       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

PROPERTIES

63       'child-model' (Gtk2::TreeModel : default undef : readable / writable /
64       construct-only / private / static-nick / static-blurb)
65           The model for the filtermodel to filter
66
67       'virtual-root' (Gtk2::TreePath : default undef : readable / writable /
68       construct-only / private / static-nick / static-blurb)
69           The virtual root (relative to the child model) for this filtermodel
70

SEE ALSO

72       Gtk2, Glib::Object
73
75       Copyright (C) 2003-2011 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.34.0                      2022-01-21          Gtk2::TreeModelFilter(3)
Impressum