gtk.flatten_list_model

Module for [FlattenListModel] class

Types 3

[gtk.flatten_list_model.FlattenListModel] is a list model that concatenates other list models.

[gtk.flatten_list_model.FlattenListModel] takes a list model containing list models, and flattens it into a single model. Each list model becomes a section in the single model.

Methods
GType _gType() @property
FlattenListModel self()Returns `this`, for use in `with` statements.
FlattenListModelGidBuilder builder()Get builder for [gtk.flattenlistmodel.FlattenListModel] Returns: New builder object
gobject.types.GType itemType() @propertyGet `itemType` property. Returns: The type of items. See [gio.list_model.ListModel.getItemType].
gio.list_model.ListModel model() @propertyGet `model` property. Returns: The model being flattened.
void model(gio.list_model.ListModel propval) @propertySet `model` property. Params: propval = The model being flattened.
uint nItems() @propertyGet `nItems` property. Returns: The number of items. See [gio.list_model.ListModel.getNItems].
gio.list_model.ListModel getModel()Gets the model set via [gtk.flattenlistmodel.FlattenListModel.setModel]. Returns: The model flattened by self
gio.list_model.ListModel getModelForItem(uint position)Returns the model containing the item at the given position.
void setModel(gio.list_model.ListModel model = null)Sets a new model to be flattened.
Constructors
this(void * ptr, Flag!"Take" take)
this(gio.list_model.ListModel model = null)Creates a new [gtk.flattenlistmodel.FlattenListModel] that flattens list.
Methods
T model(gio.list_model.ListModel propval)Set `model` property. Params: propval = The model being flattened. Returns: Builder instance for fluent chaining

Fluent builder for [gtk.flatten_list_model.FlattenListModel]