Gtk.MultiFilter

g GObject.GInterface GObject.GInterface Gio.ListModel Gio.ListModel GObject.GInterface->Gio.ListModel Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.Object GObject.Object Gtk.Filter Gtk.Filter GObject.Object->Gtk.Filter Gtk.MultiFilter Gtk.MultiFilter Gio.ListModel->Gtk.MultiFilter Gtk.Buildable->Gtk.MultiFilter Gtk.Filter->Gtk.MultiFilter

Subclasses:

Gtk.AnyFilter, Gtk.EveryFilter

Methods

Inherited:

Gtk.Filter (3), GObject.Object (37), Gio.ListModel (4), Gtk.Buildable (1)

Structs:

GObject.ObjectClass (5)

append (filter)

remove (position)

Virtual Methods

Inherited:

Gtk.Filter (2), GObject.Object (7), Gio.ListModel (3), Gtk.Buildable (9)

Properties

Name

Type

Flags

Short Description

item-type

GObject.GType

r

n-items

int

r

Signals

Inherited:

Gtk.Filter (1), GObject.Object (1), Gio.ListModel (1)

Fields

Inherited:

Gtk.Filter (1), GObject.Object (1), Gio.ListModel (1)

Class Details

class Gtk.MultiFilter(**kwargs)
Bases:

Gtk.Filter, Gio.ListModel, Gtk.Buildable

Abstract:

Yes

Structure:

Gtk.MultiFilterClass

GtkMultiFilter is the base class for filters that combine multiple filters.

append(filter)[source]
Parameters:

filter (Gtk.Filter) – A new filter to use

Adds a filter to self to use for matching.

remove(position)[source]
Parameters:

position (int) – position of filter to remove

Removes the filter at the given position from the list of filters used by self.

If position is larger than the number of filters, nothing happens and the function returns.

Property Details

Gtk.MultiFilter.props.item_type
Name:

item-type

Type:

GObject.GType

Default Value:

<GType GtkFilter>

Flags:

READABLE

The type of items. See [method`Gio`.ListModel.get_item_type].

New in version 4.8.

Gtk.MultiFilter.props.n_items
Name:

n-items

Type:

int

Default Value:

0

Flags:

READABLE

The number of items. See [method`Gio`.ListModel.get_n_items].

New in version 4.8.