gtk.flatten_list_model
Module for [FlattenListModel] class
Types 3
classFlattenListModel : gobject.object.ObjectWrap, gio.list_model.ListModel, gtk.section_model.SectionModel
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
FlattenListModelGidBuilder builder() static nothrowGet builder for [gtk.flatten_list_model.FlattenListModel] Returns: New builder objectgobject.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 selfgio.list_model.ListModel getModelForItem(uint position) nothrowReturns the model containing the item at the given position.Constructors
this(gio.list_model.ListModel model = null)Creates a new [gtk.flatten_list_model.FlattenListModel] that flattens list.classFlattenListModelGidBuilderImpl(T) : gobject.object.ObjectWrapGidBuilderImpl!T, gio.list_model.ListModelGidBuilderImpl!T, gtk.section_model.SectionModelGidBuilderImpl!T
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 chainingFluent builder for gtk.flatten_list_model.FlattenListModel
Methods