About all my projects
Gnome::Gtk4::MultiSelection

Gnome::Gtk4::MultiSelection

Description

Gnome::Gtk4::MultiSelection is a Gnome::Gtk4::R-SelectionModel that allows selecting multiple elements.

Class initialization

new

:native-object

Create an object using a native object from elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object :$native-object! )

new-multiselection

Creates a new selection to handle $model.

method new-multiselection ( N-List() $model --> Gnome::Gtk4::MultiSelection \)
  • $model; (transfer ownership: full) the Gnome::Gio::R-ListModel to manage.

Methods

get-model

Returns the underlying model of $self.

method get-model (--> N-List )

Return value; the underlying model.

set-model

Sets the model that $self should wrap.

If $model is undefined, $self will be empty.

method set-model ( N-List() $model )
  • $model; A Gnome::Gio::R-ListModel to wrap.