Class

Gtk.StringFilter

Description [src]

final class Gtk.StringFilter : Gtk.Filter {
  /* No available fields */
}

GtkStringFilter determines whether to include items by looking at strings and comparing them to a fixed search term. The strings are obtained from the items by evaluating a GtkExpression.

GtkStringFilter has several different modes of comparison - it can match the whole string, just a prefix, or any substring.

Ancestors

Constructors

gtk_string_filter_new

Creates a new string filter.

Instance methods

gtk_string_filter_get_expression

Gets the expression that the string filter uses to obtain strings from items.

gtk_string_filter_get_ignore_case

Returns whether the filter ignores case differences.

gtk_string_filter_get_match_mode

Returns the match mode that the filter is using.

gtk_string_filter_get_search

Gets the search string set via gtk_string_filter_set_search().

gtk_string_filter_set_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.

gtk_string_filter_set_ignore_case

Sets whether the filter ignores case differences.

gtk_string_filter_set_match_mode

Sets the match mode for the filter.

gtk_string_filter_set_search

Sets the string to search for.

Properties

Gtk.StringFilter:expression

The expression to evaluate on item to get a string to compare with

Gtk.StringFilter:ignore-case

If matching is case sensitive

Gtk.StringFilter:match-mode

If exact matches are necessary or if substrings are allowed

Gtk.StringFilter:search

The search term

Class structure

struct GtkStringFilterClass {
  GtkFilterClass parent_class;
  
}
Class members
parent_class
GtkFilterClass
  No description available.