GtkMultiSelection — A selection model that allows selecting multiple items
GtkMultiSelection * | gtk_multi_selection_new () |
GListModel * | gtk_multi_selection_get_model () |
void | gtk_multi_selection_set_model () |
GListModel * | model | Read / Write |
GObject ╰── GtkMultiSelection
GtkMultiSelection implements GListModel and GtkSelectionModel.
#include <gtk/gtk.h>
GtkMultiSelection is an implementation of the GtkSelectionModel interface that allows selecting multiple elements.
GtkMultiSelection *
gtk_multi_selection_new (GListModel *model
);
Creates a new selection to handle model
.
model | the GListModel to manage, or | [allow-none][transfer full] |
GListModel *
gtk_multi_selection_get_model (GtkMultiSelection *self
);
Returns the underlying model of self
.
self |
the underlying model.
[transfer none]
void gtk_multi_selection_set_model (GtkMultiSelection *self
,GListModel *model
);
Sets the model that self
should wrap. If model
is NULL
, self
will be empty.
self | ||
model | A GListModel to wrap. | [allow-none] |
typedef struct _GtkMultiSelection GtkMultiSelection;
“model”
property“model” GListModel *
The list managed by this selection
Owner: GtkMultiSelection
Flags: Read / Write
© 2005–2020 The GNOME Project
Licensed under the GNU Lesser General Public License version 2.1 or later.
https://developer.gnome.org/gtk4/4.0/GtkMultiSelection.html