gtk.tree_list_model
Module for [TreeListModel] class
Types 3
[gtk.tree_list_model.TreeListModel] is a list model that can create child models on demand.
Methods
TreeListModel self()Returns `this`, for use in `with` statements.TreeListModelGidBuilder builder()Get builder for [gtk.treelistmodel.TreeListModel] Returns: New builder objectbool autoexpand() @propertyGet `autoexpand` property. Returns: If all rows should be expanded by default.void autoexpand(bool propval) @propertySet `autoexpand` property. Params: propval = If all rows should be expanded by default.gobject.types.GType itemType() @propertyGet `itemType` property. Returns: The type of items. See [gio.list_model.ListModel.getItemType].uint nItems() @propertyGet `nItems` property. Returns: The number of items. See [gio.list_model.ListModel.getNItems].bool passthrough() @propertyGet `passthrough` property. Returns: Gets whether the model is in passthrough mode.bool getAutoexpand()Gets whether the model is set to automatically expand new rows that get added.gtk.tree_list_row.TreeListRow getChildRow(uint position)Gets the row item corresponding to the child at index position for self's root model.gio.list_model.ListModel getModel()Gets the root model that self was created with. Returns: the root modelbool getPassthrough()Gets whether the model is passing through original row items.gtk.tree_list_row.TreeListRow getRow(uint position)Gets the row object for the given row.void setAutoexpand(bool autoexpand)Sets whether the model should autoexpand.Constructors
this(gio.list_model.ListModel root, bool passthrough, bool autoexpand, gtk.types.TreeListModelCreateModelFunc createFunc)Creates a new empty [gtk.treelistmodel.TreeListModel] displaying root with all rows collapsed.classTreeListModelGidBuilderImpl(T) : gobject.object.ObjectWrapGidBuilderImpl!T, gio.list_model.ListModelGidBuilderImpl!T
Methods
T autoexpand(bool propval)Set `autoexpand` property. Params: propval = If all rows should be expanded by default. Returns: Builder instance for fluent chainingT passthrough(bool propval)Set `passthrough` property. Params: propval = Gets whether the model is in passthrough mode.Fluent builder for [gtk.tree_list_model.TreeListModel]
Methods