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
FlattenListModel self()Returns `this`, for use in `with` statements.FlattenListModelGidBuilder builder()Get builder for [gtk.flattenlistmodel.FlattenListModel] Returns: New builder objectgobject.types.GType itemType() @propertyGet `itemType` property. Returns: The type of items. See [gio.list_model.ListModel.getItemType].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 selfgio.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(gio.list_model.ListModel model = null)Creates a new [gtk.flattenlistmodel.FlattenListModel] that flattens list.classFlattenListModelGidBuilderImpl(T) : gobject.object.ObjectWrapGidBuilderImpl!T, gio.list_model.ListModelGidBuilderImpl!T, gtk.section_model.SectionModelGidBuilderImpl!T
Methods
T model(gio.list_model.ListModel propval)Set `model` property. Params: propval = The model being flattened. Returns: Builder instance for fluent chainingFluent builder for [gtk.flatten_list_model.FlattenListModel]
Methods