gtk.tree_list_row
Module for [TreeListRow] class
Types 3
gtk.tree_list_row.TreeListRow is used by gtk.tree_list_model.TreeListModel to represent items.
It allows navigating the model as a tree and modify the state of rows.
gtk.tree_list_row.TreeListRow instances are created by a gtk.tree_list_model.TreeListModel only when the gtk.tree_list_model.TreeListModel.passthrough property is not set.
There are various support objects that can make use of gtk.tree_list_row.TreeListRow objects, such as the gtk.tree_expander.TreeExpander widget that allows displaying an icon to expand or collapse a row or gtk.tree_list_row_sorter.TreeListRowSorter that makes it possible to sort trees properly.
TreeListRowGidBuilder builder() static nothrowGet builder for [gtk.tree_list_row.TreeListRow] Returns: New builder objectgio.list_model.ListModel children() @property nothrowGet `children` property. Returns: The model holding the row's children.bool expandable() @property nothrowGet `expandable` property. Returns: If this row can ever be expanded.bool expanded() @property nothrowGet `expanded` property. Returns: If this row is currently expanded.void expanded(bool propval) @property nothrowSet `expanded` property. Params: propval = If this row is currently expanded.gobject.object.ObjectWrap item() @property nothrowGet `item` property. Returns: The item held in this row.gtk.tree_list_row.TreeListRow getChildRow(uint position) nothrowIf self is not expanded or position is greater than the number of children, null is returned.gio.list_model.ListModel getChildren() nothrowIf the row is expanded, gets the model holding the children of self.gobject.object.ObjectWrap getItem() nothrowGets the item corresponding to this row, Returns: The item of this row. This function is only marked as nullable for backwards compatibility reasons.uint getPosition() nothrowReturns the position in the [gtk.tree_list_model.TreeListModel] that self occupies at the moment. Returns: The position in the modelFluent builder implementation template for gtk.tree_list_row.TreeListRow
T expanded(bool propval) nothrowSet `expanded` property. Params: propval = If this row is currently expanded. Returns: Builder instance for fluent chainingFluent builder for gtk.tree_list_row.TreeListRow