1.126 <GtkMultiSelection>

Class: <GtkMultiSelection>

It derives from <GObject>.

A selection model that allows selecting multiple elements.

Properties

Property: multi-selection: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: multi-selection:model self

The list managed by this selection.

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

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

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

Returns the underlying model of self.

self

Passed: a <GtkMultiSelection>.

a <GtkMultiSelection>

%return

Returned: a <GListModel>, or #f.

the underlying model

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

Creates a new selection to handle model.

model

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

the <GListModel> to manage

%return

Returned: a <GtkMultiSelection>.

a new <GtkMultiSelection>

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

Sets the model that self should wrap.

If model is #f, self will be empty.

self

Passed: a <GtkMultiSelection>.

a <GtkMultiSelection>

model

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

A <GListModel> to wrap