1.74 <GtkFlattenListModel>

Class: <GtkFlattenListModel>

It derives from <GObject>.

A list model that concatenates other list models.

<GtkFlattenListModel> takes a list model containing list models, and flattens it into a single model. Each list model becomes a section in the single model.

Properties

Property: flatten-list-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: flatten-list-model:model self

The model being flattened.

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

Set it with (set! (flatten-list-model:model self) value).

Property: flatten-list-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: flatten-list-model:get-model self ⇒ %return
Method: get-model self ⇒ %return

Gets the model set via flatten-list-model:set-model.

self

Passed: a <GtkFlattenListModel>.

a <GtkFlattenListModel>

%return

Returned: a <GListModel>, or #f.

The model flattened by self

Method: flatten-list-model:get-model-for-item self position ⇒ %return
Method: get-model-for-item self position ⇒ %return

Returns the model containing the item at the given position.

self

Passed: a <GtkFlattenListModel>.

a <GtkFlattenListModel>

position

Passed: an unsigned 32-bit integer.

a position

%return

Returned: a <GListModel>, or #f.

the model containing the item at position

Procedure: flatten-list-model:new [model] ⇒ %return

Creates a new <GtkFlattenListModel> that flattens list.

model

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

the model to be flattened

%return

Returned: a <GtkFlattenListModel>.

a new <GtkFlattenListModel>

Method: flatten-list-model:set-model self [model]
Method: set-model self [model]

Sets a new model to be flattened.

self

Passed: a <GtkFlattenListModel>.

a <GtkFlattenListModel>

model

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

the new model