set_filter_func


Description:

public void set_filter_func (owned FlowBoxFilterFunc? filter_func)

By setting a filter function on the this one can decide dynamically which of the children to show.

For instance, to implement a search function that only shows the children matching the search terms.

The filter_func will be called for each child after the call, and it will continue to be called each time a child changes ( via [[email protected]]) or when [[email protected]_filter] is called.

Note that using a filter function is incompatible with using a model (see [[email protected]_model]).

Parameters:

this

a `GtkFlowBox`

filter_func

callback that lets you filter which children to show

destroy

destroy notifier for user_data

user_data

user data passed to filter_func




2022 vala-language.org