Package: gtk

Function gtk:tree-list-model-row

Lambda List

gtk:tree-list-model-row (model position)

Arguments

model -- a gtk:tree-list-model object
position -- an unsigned integer with the position of the row to fetch

Return Value

The gtk:tree-list-row object with the row item.

Details

Gets the row object for the given row. If position is greater than the number of items in model, nil is returned. The row object can be used to expand and collapse rows as well as to inspect its position in the tree. See its documentation for details.

This row object is persistent and will refer to the current item as long as the row is present in model, independent of other rows being added or removed. If model is set to not be passthrough, this function is equivalent to calling the g:list-model-item function. Do not confuse this function with the gtk:tree-list-model-child-row function.
 

See also

#2023-9-24