pub trait TreeModelFilterExtManual: IsA<TreeModelFilter> + 'static {
// Provided method
fn set_modify_func<F: Fn(&TreeModel, &TreeIter, i32) -> Value + 'static>(
&self,
types: &[Type],
func: F,
) { ... }
}
Expand description
Trait containing manually implemented methods of
TreeModelFilter
.
Provided Methods§
Sourcefn set_modify_func<F: Fn(&TreeModel, &TreeIter, i32) -> Value + 'static>(
&self,
types: &[Type],
func: F,
)
👎Deprecated: Since 4.10
fn set_modify_func<F: Fn(&TreeModel, &TreeIter, i32) -> Value + 'static>( &self, types: &[Type], func: F, )
With the @n_columns and @types parameters, you give an array of column types for this model (which will be exposed to the parent model/view). The @func, @data and @destroy parameters are for specifying the modify function. The modify function will get called for each data access, the goal of the modify function is to return the data which should be displayed at the location specified using the parameters of the modify function.
Note that gtk_tree_model_filter_set_modify_func() can only be called once for a given filter model.
§Deprecated since 4.10
§types
The GType
s of the columns.
§func
A GtkTreeModelFilterModifyFunc
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.