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
TreeListModelGidBuilder builder() static nothrowGet builder for [gtk.tree_list_model.TreeListModel] Returns: New builder objectbool autoexpand() @property nothrowGet `autoexpand` property. Returns: If all rows should be expanded by default.void autoexpand(bool propval) @property nothrowSet `autoexpand` property. Params: propval = If all rows should be expanded by default.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 root model displayed.uint nItems() @property nothrowGet `nItems` property. Returns: The number of items. See [gio.list_model.ListModel.getNItems].bool passthrough() @property nothrowGet `passthrough` property. Returns: Gets whether the model is in passthrough mode.bool getAutoexpand() nothrowGets whether the model is set to automatically expand new rows that get added.gtk.tree_list_row.TreeListRow getChildRow(uint position) nothrowGets the row item corresponding to the child at index position for self's root model.gio.list_model.ListModel getModel() nothrowGets the root model that self was created with. Returns: the root modelConstructors
this(gio.list_model.ListModel root, bool passthrough, bool autoexpand, gtk.types.TreeListModelCreateModelFunc createFunc)Creates a new empty [gtk.tree_list_model.TreeListModel] displaying root with all rows collapsed.classTreeListModelGidBuilderImpl(T) : gobject.object.ObjectWrapGidBuilderImpl!T, gio.list_model.ListModelGidBuilderImpl!T
Fluent builder implementation template for gtk.tree_list_model.TreeListModel
Methods
T autoexpand(bool propval) nothrowSet `autoexpand` property. Params: propval = If all rows should be expanded by default. Returns: Builder instance for fluent chainingT passthrough(bool propval) nothrowSet `passthrough` property. Params: propval = Gets whether the model is in passthrough mode.Fluent builder for gtk.tree_list_model.TreeListModel
Methods