It derives from <GtkFilter>.
Determines whether to include items by comparing strings to a fixed search term.
The strings are obtained from the items by evaluating an expression set
with string-filter:set-expression, and they are compared
against a search term set with string-filter:set-search.
<GtkStringFilter> has several different modes
of comparison - it can match the whole string, just a prefix, or any
substring. Use string-filter:set-match-mode choose a mode.
It is also possible to make case-insensitive comparisons, with
string-filter:set-ignore-case.
The expression to evaluate on each item to get a string to compare with.
Its value is a <GtkExpression>, or #f.
Set it with (set! (string-filter:expression self) value).
If matching is case sensitive.
Its value is a boolean.
Set it with (set! (string-filter:ignore-case self) value).
If exact matches are necessary or if substrings are allowed.
Its value is a
<GtkStringFilterMatchMode> (or, to
set it, one of its symbols).
Set it with (set! (string-filter:match-mode self) value).
The search term.
Its value is a string, or #f.
Set it with (set! (string-filter:search self) value).
Gets the expression that the string filter uses to obtain strings from items.
Passed: a <GtkStringFilter>.
a string filter
Returned: a <GtkExpression>, or #f.
the expression
Returns whether the filter ignores case differences.
Passed: a <GtkStringFilter>.
a string filter
Returned: a boolean.
true if the filter ignores case
Returns the match mode that the filter is using.
Passed: a <GtkStringFilter>.
a string filter
Returned: a
<GtkStringFilterMatchMode>.
the match mode of the filter
Gets the search term.
Passed: a <GtkStringFilter>.
a string filter
Returned: a string, or #f.
the search term
Creates a new string filter.
You will want to set up the filter by providing a string to search for and by providing a property to look up on the item.
Passed, or left out: a <GtkExpression>, or
#f.
the expression to evaluate
Returned: a <GtkStringFilter>.
a new <GtkStringFilter>
Sets the expression that the string filter uses to obtain strings from items.
The expression must have a value type of G_TYPE_STRING.
Passed: a <GtkStringFilter>.
a string filter
Passed, or left out: a <GtkExpression>, or
#f.
the expression
Sets whether the filter ignores case differences.
Passed: a <GtkStringFilter>.
a string filter
Passed: a boolean.
true to ignore case
Sets the match mode for the filter.
Passed: a <GtkStringFilter>.
a string filter
Passed: a
<GtkStringFilterMatchMode>, or one
of its symbols.
the new match mode
Sets the string to search for.
Passed: a <GtkStringFilter>.
a string filter
Passed, or left out: a string, or #f.
the string to search for