TreeListModel


Description:

[ CCode ( has_construct_function = false ) ]
public TreeListModel (owned ListModel root, bool passthrough, bool autoexpand, owned TreeListModelCreateModelFunc create_func)

Creates a new empty `GtkTreeListModel` displaying root with all rows collapsed.

Parameters:

root

The `GListModel` to use as root

passthrough

true to pass through items from the models

autoexpand

true to set the autoexpand property and expand the root model

create_func

Function to call to create the `GListModel` for the children of an item

user_data

Data to pass to create_func

user_destroy

Function to call to free user_data

Returns:

a newly created `GtkTreeListModel`.




2022 vala-language.org