1.170 <GtkSelectionFilterModel>

Class: <GtkSelectionFilterModel>

It derives from <GObject>.

A list model that presents the selection from a <GtkSelectionModel>.

Properties

Property: selection-filter-model:item-type self

The type of items. See list-model:get-item-type.

Its value is a class, or a GType number.

It is read only.

Property: selection-filter-model:model self

The model being filtered.

Its value is a <GtkSelectionModel>, or #f.

Set it with (set! (selection-filter-model:model self) value).

Property: selection-filter-model:n-items self

The number of items. See list-model:get-n-items.

Its value is an unsigned 32-bit integer.

It is read only.

Procedures

Method: selection-filter-model:get-model self ⇒ %return
Method: get-model self ⇒ %return

Gets the model currently filtered or #f if none.

self

Passed: a <GtkSelectionFilterModel>.

a <GtkSelectionFilterModel>

%return

Returned: a <GtkSelectionModel>, or #f.

The model that gets filtered

Procedure: selection-filter-model:new [model] ⇒ %return

Creates a new <GtkSelectionFilterModel> that will include the selected items from the underlying selection model.

model

Passed, or left out: a <GtkSelectionModel>, or #f.

the selection model to filter

%return

Returned: a <GtkSelectionFilterModel>.

a new <GtkSelectionFilterModel>

Method: selection-filter-model:set-model self [model]
Method: set-model self [model]

Sets the model to be filtered.

Note that GTK makes no effort to ensure that model conforms to the item type of self. It assumes that the caller knows what they are doing and have set up an appropriate filter to ensure that item types match.

self

Passed: a <GtkSelectionFilterModel>.

a <GtkSelectionFilterModel>

model

Passed, or left out: a <GtkSelectionModel>, or #f.

The model to be filtered