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 _getGType() static nothrow
GType _gType() @property nothrow
FlattenListModel self() nothrowReturns `this`, for use in `with` statements.
FlattenListModelGidBuilder builder() static nothrowGet builder for [gtk.flatten_list_model.FlattenListModel] Returns: New builder object
gobject.types.GType itemType() @property nothrowGet `itemType` property. Returns: The type of items. See [gio.list_model.ListModel.getItemType].
gio.list_model.ListModel model() @property nothrowGet `model` property. Returns: The model being flattened.
void model(gio.list_model.ListModel propval) @property nothrowSet `model` property. Params: propval = The model being flattened.
uint nItems() @property nothrowGet `nItems` property. Returns: The number of items. See [gio.list_model.ListModel.getNItems].
gio.list_model.ListModel getModel() nothrowGets the model set via [gtk.flatten_list_model.FlattenListModel.setModel]. Returns: The model flattened by self
gio.list_model.ListModel getModelForItem(uint position) nothrowReturns the model containing the item at the given position.
void setModel(gio.list_model.ListModel model = null) nothrowSets a new model to be flattened.
Constructors
this(void * ptr, Flag!"Take" take)
this(gio.list_model.ListModel model = null)Creates a new [gtk.flatten_list_model.FlattenListModel] that flattens list.

Fluent builder implementation template for gtk.flatten_list_model.FlattenListModel

Methods
T model(gio.list_model.ListModel propval) nothrowSet `model` property. Params: propval = The model being flattened. Returns: Builder instance for fluent chaining