[271:14] static extends: object
Generated metadata helpers for StringFilter class surfaces.
properties ()
Returns property metadata for
StringFilter.
A list.[21:7] extends: object
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 [method@Gtk.StringFilter.set_expression], and they are compared against
a search term set with [method@Gtk.StringFilter.set_search].
GtkStringFilter has several different modes of comparison - it can match
the whole string, just a prefix, or any substring. Use
[method@Gtk.StringFilter.set_match_mode] choose a mode. It is also possible
to make case-insensitive comparisons, with
[method@Gtk.StringFilter.set_ignore_case].
StringFilter (expression = null)
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.
expression is the expression to evaluate.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asFilter ()
Wraps this handle as
Filter.
A Filter object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setExpression (object Value)
The expression to evaluate on each item to get a string to compare with.
Value is the new property value.None.setIgnorecase (bool Value)
If matching is case sensitive.
Value is the new property value.None.setMatchmode (string Value)
If exact matches are necessary or if substrings are allowed.
Value is the new property value.None.setSearch (string Value)
The search term.
Value is the new property value.None.get_expression ()
Gets the expression that the string filter uses to obtain strings from items.
get_ignore_case ()
Returns whether the filter ignores case differences.
get_match_mode ()
Returns the match mode that the filter is using.
get_search ()
Gets the search term.
set_expression (object expression)
Sets the expression that the string filter uses to obtain strings from items. The expression must have a value type of
G_TYPE_STRING.
expression is the expression.None.set_ignore_case (bool ignore_case)
Sets whether the filter ignores case differences.
ignore_case is true to ignore case.None.set_match_mode (string mode)
Sets the match mode for the filter.
mode is the new match mode.None.set_search (string search)
Sets the string to search for.
search is the string to search for.None.