Top | ![]() |
![]() |
![]() |
![]() |
GtkFlattenListModel * | gtk_flatten_list_model_new () |
void | gtk_flatten_list_model_set_model () |
GListModel * | gtk_flatten_list_model_get_model () |
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 (GType item_type
,GListModel *model
);
Creates a new GtkFlattenListModel that flattens list
. The
models returned by model
must conform to the given item_type
,
either by having an identical type or a subtype.
void gtk_flatten_list_model_set_model (GtkFlattenListModel *self
,GListModel *model
);
Sets a new model to be flattened. The model must contain items of
GtkListModel that conform to the item type of self
.
GListModel *
gtk_flatten_list_model_get_model (GtkFlattenListModel *self
);
Gets the model set via gtk_flatten_list_model_set_model()
.