1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 A GtkTreeModel which hides parts of an underlying tree model
7 <!-- ##### SECTION Long_Description ##### -->
9 A #GtkTreeModelFilter is a tree model which wraps another tree model,
10 and can do the following things:
13 Filter specific rows, based on data from a "visible column", a column
14 storing booleans indicating whether the row should be filtered or not,
15 or based on the return value of a "visible function", which gets a
16 model, iter and user_data and returns a boolean indicating whether the
17 row should be filtered or not.
20 Modify the "appearance" of the model, using a modify function.
21 This is extremely powerful and allows for just changing
22 some values and also for creating a completely different model based on
23 the given child model.
26 Set a different root node, also known as a "virtual root". You can pass in
27 a #GtkTreePath indicating the root node for the filter at construction time.
32 <!-- ##### SECTION See_Also ##### -->
37 <!-- ##### STRUCT GtkTreeModelFilter ##### -->
39 The GtkTreeModelFilter struct contains only private fields.
43 <!-- ##### ARG GtkTreeModelFilter:child-model ##### -->
48 <!-- ##### ARG GtkTreeModelFilter:virtual-root ##### -->
53 <!-- ##### USER_FUNCTION GtkTreeModelFilterVisibleFunc ##### -->
55 A function which decides whether the row indicated by @iter is visible.
58 @model: the #GtkTreeModelFilter
59 @iter: a #GtkTreeIter pointing to the row whose visibility is determined
60 @data: user data given to gtk_tree_model_filter_set_visible_func()
61 @Returns: Whether the row indicated by @iter is visible.
64 <!-- ##### USER_FUNCTION GtkTreeModelFilterModifyFunc ##### -->
66 A function which calculates display values from raw values in the model.
67 It must fill @value with the display value for the column @column in the
68 row indicated by @iter.
71 @model: the #GtkTreeModelFilter
72 @iter: a #GtkTreeIter pointing to the row whose display values are determined
73 @value: A #GValue which is already initialized for with the correct type for
75 @column: the column whose display value is determined
76 @data: user data given to gtk_tree_model_filter_set_modify_func()
79 <!-- ##### FUNCTION gtk_tree_model_filter_new ##### -->
89 <!-- ##### FUNCTION gtk_tree_model_filter_set_visible_func ##### -->
100 <!-- ##### FUNCTION gtk_tree_model_filter_set_modify_func ##### -->
113 <!-- ##### FUNCTION gtk_tree_model_filter_set_visible_column ##### -->
122 <!-- ##### FUNCTION gtk_tree_model_filter_get_model ##### -->
131 <!-- ##### FUNCTION gtk_tree_model_filter_convert_child_iter_to_iter ##### -->
141 <!-- ##### FUNCTION gtk_tree_model_filter_convert_iter_to_child_iter ##### -->
151 <!-- ##### FUNCTION gtk_tree_model_filter_convert_child_path_to_path ##### -->
161 <!-- ##### FUNCTION gtk_tree_model_filter_convert_path_to_child_path ##### -->
169 <!-- # Unused Parameters # -->
173 <!-- ##### FUNCTION gtk_tree_model_filter_refilter ##### -->
181 <!-- ##### FUNCTION gtk_tree_model_filter_clear_cache ##### -->