GtkNoSelection — A selection model that does not allow selecting anything
GtkNoSelection * | gtk_no_selection_new () |
GListModel * | gtk_no_selection_get_model () |
void | gtk_no_selection_set_model () |
GListModel * | model | Read / Write |
GObject ╰── GtkNoSelection
GtkNoSelection implements GListModel and GtkSelectionModel.
#include <gtk/gtk.h>
GtkNoSelection is an implementation of the GtkSelectionModel interface that does not allow selecting anything.
This model is meant to be used as a simple wrapper to GListModels when a GtkSelectionModel is required.
GtkNoSelection *
gtk_no_selection_new (GListModel *model
);
Creates a new selection to handle model
.
model | the GListModel to manage, or | [allow-none][transfer full] |
GListModel *
gtk_no_selection_get_model (GtkNoSelection *self
);
Gets the model that self
is wrapping.
self |
The model being wrapped.
[transfer none]
void gtk_no_selection_set_model (GtkNoSelection *self
,GListModel *model
);
Sets the model that self
should wrap. If model
is NULL
, this model will be empty.
self | ||
model | A GListModel to wrap. | [allow-none] |
typedef struct _GtkNoSelection GtkNoSelection;
“model”
property“model” GListModel *
The model being managed
Owner: GtkNoSelection
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/GtkNoSelection.html