GtkFlattenListModel — A list model that flattens a list of lists
GtkFlattenListModel * | gtk_flatten_list_model_new () |
void | gtk_flatten_list_model_set_model () |
GListModel * | gtk_flatten_list_model_get_model () |
GListModel * | gtk_flatten_list_model_get_model_for_item () |
GListModel * | model | Read / Write |
GObject ╰── GtkFlattenListModel
GtkFlattenListModel implements GListModel.
#include <gtk/gtk.h>
GtkFlattenListModel is a list model that takes a list model containing list models and flattens it into a single model.
Another term for this is concatenation: GtkFlattenListModel takes a list of lists and concatenates them into a single list.
GtkFlattenListModel *
gtk_flatten_list_model_new (GListModel *model
);
Creates a new GtkFlattenListModel that flattens list
.
model | the model to be flattened. | [nullable][transfer full] |
a new GtkFlattenListModel
void gtk_flatten_list_model_set_model (GtkFlattenListModel *self
,GListModel *model
);
Sets a new model to be flattened.
self | ||
model | the new model or | [nullable][transfer none] |
GListModel *
gtk_flatten_list_model_get_model (GtkFlattenListModel *self
);
Gets the model set via gtk_flatten_list_model_set_model()
.
self |
The model flattened by self
.
[nullable][transfer none]
GListModel * gtk_flatten_list_model_get_model_for_item (GtkFlattenListModel *self
,guint position
);
Returns the model containing the item at the given position.
self | ||
position | a position |
the model containing the item at position
.
[transfer none]
typedef struct _GtkFlattenListModel GtkFlattenListModel;
“model”
property“model” GListModel *
The model being flattened
Owner: GtkFlattenListModel
Flags: Read / Write
GListModel
© 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/GtkFlattenListModel.html