It derives from <GObject>.
The type of item used by <GtkTreeListModel>.
It allows navigating the model as a tree and modify the state of rows.
<GtkTreeListRow> instances are created by a
<GtkTreeListModel> only when the
tree-list-model:passthrough property is not set.
There are various support objects that can make use of
<GtkTreeListRow> objects, such as the
<GtkTreeExpander> widget that allows
displaying an icon to expand or collapse a row or
<GtkTreeListRowSorter> that makes it
possible to sort trees properly.
The model holding the row’s children.
Its value is a <GListModel>, or #f.
It is read only.
The depth in the tree of this row.
Its value is an unsigned 32-bit integer.
It is read only.
If this row can ever be expanded.
Its value is a boolean.
It is read only.
If this row is currently expanded.
Its value is a boolean.
Set it with (set! (tree-list-row:expanded self) value).
The item held in this row.
Its value is a <GObject>, or #f.
It is read only.
If self is not expanded or position is greater than the
number of children, #f is returned.
Passed: a <GtkTreeListRow>.
Passed: an unsigned 32-bit integer.
position of the child to get
Returned: a <GtkTreeListRow>, or #f.
the child in position
If the row is expanded, gets the model holding the children of self.
This model is the model created by the
GtkTreeListModelCreateModelFunc
and contains the original items, no matter what value
tree-list-model:passthrough is set to.
Passed: a <GtkTreeListRow>.
Returned: a <GListModel>, or #f.
The model containing the children
Gets the depth of this row.
Rows that correspond to items in the root model have a depth of zero, rows corresponding to items of models of direct children of the root model have a depth of 1 and so on.
The depth of a row never changes until the row is removed from its model at which point it will forever return 0.
Passed: a <GtkTreeListRow>.
Returned: an unsigned 32-bit integer.
The depth of this row
Gets if a row is currently expanded.
Passed: a <GtkTreeListRow>.
Returned: a boolean.
#t if the row is expanded
Gets the item corresponding to this row,
Passed: a <GtkTreeListRow>.
Returned: a <GObject>, or #f.
The item of this row. This function is only marked as nullable for backwards compatibility reasons.
Gets the row representing the parent for self.
That is the row that would need to be collapsed to make this row disappear.
If self is a row corresponding to the root model, #f is
returned.
The value returned by this function never changes until the row is
removed from its model at which point it will forever return #f.
Passed: a <GtkTreeListRow>.
Returned: a <GtkTreeListRow>, or #f.
The parent of self
Returns the position in the
<GtkTreeListModel> that self occupies
at the moment.
Passed: a <GtkTreeListRow>.
Returned: an unsigned 32-bit integer.
The position in the model
Checks if a row can be expanded.
This does not mean that the row is actually expanded, this can be
checked with tree-list-row:get-expanded?.
If a row is expandable never changes until the row is removed from its
model at which point it will forever return #f.
Passed: a <GtkTreeListRow>.
Returned: a boolean.
#t if the row is expandable
Expands or collapses a row.
If a row is expanded, the model of calling the
GtkTreeListModelCreateModelFunc
for the row’s item will be inserted after this row. If a row is
collapsed, those items will be removed from the model.
If the row is not expandable, this function does nothing.
Passed: a <GtkTreeListRow>.
Passed: a boolean.
#t if the row should be expanded