pub trait TreeModelFilterExt: IsA<TreeModelFilter> + 'static {
// Provided methods
fn clear_cache(&self) { ... }
fn convert_child_iter_to_iter(
&self,
child_iter: &TreeIter,
) -> Option<TreeIter> { ... }
fn convert_child_path_to_path(
&self,
child_path: &TreePath,
) -> Option<TreePath> { ... }
fn convert_iter_to_child_iter(&self, filter_iter: &TreeIter) -> TreeIter { ... }
fn convert_path_to_child_path(
&self,
filter_path: &TreePath,
) -> Option<TreePath> { ... }
fn model(&self) -> TreeModel { ... }
fn refilter(&self) { ... }
fn set_visible_column(&self, column: i32) { ... }
fn set_visible_func<P: Fn(&TreeModel, &TreeIter) -> bool + 'static>(
&self,
func: P,
) { ... }
fn child_model(&self) -> Option<TreeModel> { ... }
}Since 4.10
Expand description
Provided Methods§
Sourcefn clear_cache(&self)
👎Deprecated: Since 4.10
fn clear_cache(&self)
Since 4.10
t change often) and there has been a lot of unreffed access to nodes. As a side effect of this function, all unreffed iters will be invalid.
§Deprecated since 4.10
Sourcefn convert_child_iter_to_iter(&self, child_iter: &TreeIter) -> Option<TreeIter>
👎Deprecated: Since 4.10
fn convert_child_iter_to_iter(&self, child_iter: &TreeIter) -> Option<TreeIter>
Since 4.10
Sets @filter_iter to point to the row in @self that corresponds to the
row pointed at by @child_iter. If @filter_iter was not set, false is
returned.
§Deprecated since 4.10
§child_iter
A valid TreeIter pointing to a row on the child model.
§Returns
true, if @filter_iter was set, i.e. if @child_iter is a
valid iterator pointing to a visible row in child model.
§filter_iter
An uninitialized TreeIter
Sourcefn convert_child_path_to_path(&self, child_path: &TreePath) -> Option<TreePath>
👎Deprecated: Since 4.10
fn convert_child_path_to_path(&self, child_path: &TreePath) -> Option<TreePath>
Since 4.10
Sourcefn convert_iter_to_child_iter(&self, filter_iter: &TreeIter) -> TreeIter
👎Deprecated: Since 4.10
fn convert_iter_to_child_iter(&self, filter_iter: &TreeIter) -> TreeIter
Since 4.10
Sourcefn convert_path_to_child_path(&self, filter_path: &TreePath) -> Option<TreePath>
👎Deprecated: Since 4.10
fn convert_path_to_child_path(&self, filter_path: &TreePath) -> Option<TreePath>
Since 4.10
Converts @filter_path to a path on the child model of @self. That is,
@filter_path points to a location in @self. The returned path will
point to the same location in the model not being filtered. If @filter_path
does not point to a location in the child model, None is returned.
§Deprecated since 4.10
§filter_path
A TreePath to convert.
§Returns
A newly allocated TreePath
Sourcefn refilter(&self)
👎Deprecated: Since 4.10
fn refilter(&self)
Since 4.10
Emits ::row_changed for each row in the child model, which causes the filter to re-evaluate whether a row is visible or not.
§Deprecated since 4.10
Sourcefn set_visible_column(&self, column: i32)
👎Deprecated: Since 4.10
fn set_visible_column(&self, column: i32)
Since 4.10
Sets @column of the child_model to be the column where @self should
look for visibility information. @columns should be a column of type
G_TYPE_BOOLEAN, where true means that a row is visible, and false
if not.
Note that gtk_tree_model_filter_set_visible_func() or gtk_tree_model_filter_set_visible_column() can only be called once for a given filter model.
§Deprecated since 4.10
§column
A int which is the column containing the visible information
Sourcefn set_visible_func<P: Fn(&TreeModel, &TreeIter) -> bool + 'static>(
&self,
func: P,
)
👎Deprecated: Since 4.10
fn set_visible_func<P: Fn(&TreeModel, &TreeIter) -> bool + 'static>( &self, func: P, )
Since 4.10
strcmp (str, “HI”) == 0) visible = TRUE; g_free (str);
return visible; }
Note that gtk_tree_model_filter_set_visible_func() or
gtk_tree_model_filter_set_visible_column() can only be called
once for a given filter model.
# Deprecated since 4.10
## `func`
A `GtkTreeModelFilterVisibleFunc`, the visible functionSourcefn child_model(&self) -> Option<TreeModel>
👎Deprecated: Since 4.10
fn child_model(&self) -> Option<TreeModel>
Since 4.10
The child model of the tree model filter.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".