Filter


Object Hierarchy:

Object hierarchy for Filter

Description:

[ CCode ( type_id = "gtk_filter_get_type ()" ) ]
public class Filter : Object

A Filter object describes the filtering to be performed by a FilterListModel.

The model will use the filter to determine if it should include items or not by calling match for each item and only keeping the ones that the function returns true for.

Filters may change what items they match through their lifetime. In that case, they will emit the changed signal to notify that previous filter results are no longer valid and that items should be checked again via match.

GTK provides various pre-made filter implementations for common filtering operations. These filters often include properties that can be linked to various widgets to easily allow searches.

However, in particular for large lists or complex search methods, it is also possible to subclass Filter and provide one's own filter.


Namespace: Gtk
Package: gtk4

Content:

Creation methods:

Methods:

Signals:

Inherited Members: