Gnome::Gtk4::NoSelection
Description
Gnome::Gtk4::NoSelection is a Gnome::Gtk4::R-SelectionModel that does not allow selecting anything.
This model is meant to be used as a simple wrapper around a Gnome::Gio::R-ListModel when a Gnome::Gtk4::R-SelectionModel is required.
Gnome::Gtk4::NoSelection passes through sections from the underlying model.
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-noselection
Creates a new selection to handle $model
.
method new-noselection ( N-List() $model --> Gnome::Gtk4::NoSelection \)
$model; (transfer ownership: full) the Gnome::Gio::R-ListModel to manage.
Methods
get-model
Gets the model that $self
is wrapping.
method get-model (--> N-List )
Return value; The model being wrapped.
set-model
Sets the model that $self
should wrap.
If $model
is undefined, this model will be empty.
method set-model ( N-List() $model )
$model; A Gnome::Gio::R-ListModel to wrap.