Class

GtkFilter

Description [src]

class Gtk.Filter : GObject.Object
{
  /* No available fields */
}

Describes the filtering to be performed by a GtkFilterListModel.

The model will use the filter to determine if it should include items or not by calling gtk_filter_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 GtkFilter::changed signal to notify that previous filter results are no longer valid and that items should be checked again via gtk_filter_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 GtkFilter and provide one’s own filter.

Hierarchy

hierarchy this GtkFilter ancestor_0 GObject ancestor_0--this

Ancestors

Instance methods

gtk_filter_changed

Notifies all users of the filter that it has changed.

gtk_filter_get_strictness

Gets the known strictness of a filter.

gtk_filter_match

Checks if the given item is matched by the filter or not.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Signals

Gtk.Filter::changed

Emitted whenever the filter changed.

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct GtkFilterClass {
  GObjectClass parent_class;
  gboolean (* match) (
    GtkFilter* self,
    GObject* item
  );
  GtkFilterMatch (* get_strictness) (
    GtkFilter* self
  );
  void (* _gtk_reserved1) (
void
  );
  void (* _gtk_reserved2) (
void
  );
  void (* _gtk_reserved3) (
void
  );
  void (* _gtk_reserved4) (
void
  );
  void (* _gtk_reserved5) (
void
  );
  void (* _gtk_reserved6) (
void
  );
  void (* _gtk_reserved7) (
void
  );
  void (* _gtk_reserved8) (
void
  );
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.

match: gboolean (* match) ( GtkFilter* self, GObject* item )

No description available.

get_strictness: GtkFilterMatch (* get_strictness) ( GtkFilter* self )

No description available.

_gtk_reserved1: void (* _gtk_reserved1) ( void )

No description available.

_gtk_reserved2: void (* _gtk_reserved2) ( void )

No description available.

_gtk_reserved3: void (* _gtk_reserved3) ( void )

No description available.

_gtk_reserved4: void (* _gtk_reserved4) ( void )

No description available.

_gtk_reserved5: void (* _gtk_reserved5) ( void )

No description available.

_gtk_reserved6: void (* _gtk_reserved6) ( void )

No description available.

_gtk_reserved7: void (* _gtk_reserved7) ( void )

No description available.

_gtk_reserved8: void (* _gtk_reserved8) ( void )

No description available.

Virtual methods

Gtk.FilterClass.get_strictness

Gets the known strictness of a filter.

Gtk.FilterClass.match

Checks if the given item is matched by the filter or not.