Class: Gtk::Filter
- Inherits:
-
Object
- Object
- Gtk::Filter
- Defined in:
- (unknown)
Direct Known Subclasses
BoolFilter, CustomFilter, FileFilter, MultiFilter, StringFilter
Instance Method Summary collapse
-
#changed(change) ⇒ nil
Notifies all users of the filter that it has changed.
-
#match(item) ⇒ Boolean
Checks if the given item is matched by the filter or not.
-
#strictness ⇒ Gtk::FilterMatch
Gets the known strictness of filters.
Instance Method Details
#changed(change) ⇒ nil
Notifies all users of the filter that it has changed.
This emits the [signalGtk.Filter::changed] signal. Users of the filter should then check items again via [methodGtk.Filter.match].
Depending on the change parameter, not all items need to be changed, but only some. Refer to the [enumGtk.FilterChange] documentation for details.
This function is intended for implementers of GtkFilter
subclasses and should not be called from other functions.
#match(item) ⇒ Boolean
Checks if the given item is matched by the filter or not.
#strictness ⇒ Gtk::FilterMatch
Gets the known strictness of filters.
If the strictness is not known, %GTK_FILTER_MATCH_SOME is returned.
This value may change after emission of the [signalGtk.Filter::changed] signal.
This function is meant purely for optimization purposes, filters can
choose to omit implementing it, but GtkFilterListModel uses it.