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
GType _getGType() static nothrow
GType _gType() @property nothrow
TreeListModel self() nothrowReturns `this`, for use in `with` statements.
TreeListModelGidBuilder builder() static nothrowGet builder for [gtk.tree_list_model.TreeListModel] Returns: New builder object
bool 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 model
bool getPassthrough() nothrowGets whether the model is passing through original row items.
gtk.tree_list_row.TreeListRow getRow(uint position) nothrowGets the row object for the given row.
void setAutoexpand(bool autoexpand) nothrowSets whether the model should autoexpand.
Constructors
this(void * ptr, Flag!"Take" take)
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.

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 chaining
T passthrough(bool propval) nothrowSet `passthrough` property. Params: propval = Gets whether the model is in passthrough mode.
Methods
TreeListModel build() nothrowCreate object from builder. Returns: New object