GtkSelectionFilterModel — A list model that turns a selection in a model
| GtkSelectionModel * | model | Read / Write |
GObject
╰── GtkSelectionFilterModel
GtkSelectionFilterModel implements GListModel.
#include <gtk/gtk.h>
GtkSelectionFilterModel is a list model that presents the selected items in a GtkSelectionModel as its own list model.
GtkSelectionFilterModel *
gtk_selection_filter_model_new (GtkSelectionModel *model); Creates a new GtkSelectionFilterModel that will include the selected items from the underlying selection model.
model | the selection model to filter, or | [allow-none][transfer none] |
a new GtkSelectionFilterModel
void gtk_selection_filter_model_set_model (GtkSelectionFilterModel *self,GtkSelectionModel *model);
Sets the model to be filtered.
Note that GTK makes no effort to ensure that model conforms to the item type of self . It assumes that the caller knows what they are doing and have set up an appropriate filter to ensure that item types match.
self | ||
model | The model to be filtered. | [allow-none] |
GtkSelectionModel *
gtk_selection_filter_model_get_model (GtkSelectionFilterModel *self); Gets the model currently filtered or NULL if none.
self |
The model that gets filtered.
[nullable][transfer none]
typedef struct _GtkSelectionFilterModel GtkSelectionFilterModel;
“model” property“model” GtkSelectionModel *
The model being filtered
Owner: GtkSelectionFilterModel
Flags: Read / Write
© 2005–2020 The GNOME Project
Licensed under the GNU Lesser General Public License version 2.1 or later.
https://developer-old.gnome.org/gtk4/4.0/GtkSelectionFilterModel.html