TreeStore


Description:

[ CCode ( has_construct_function = false ) ]
protected TreeStore ()

Creates a TreeModel interface with a Tree, mapping columns to attributes' values.

As an example, <literal>gdaui_tree_store_new (tree, 2, G_TYPE_STRING, "name", G_TYPE_STRING, "schema");</literal> creates a TreeStore with two columns (of type G_TYPE_STRING), one with the values of the "name" attribute, and one with the values of the "schema" attribute.

Note that the GType has to correspond to the type of value associated with the attribute name (no type conversion is done), and a warning will be displayed in case of type mismatch.

Parameters:

n_columns

number of columns in the tree store

tree

a Tree object

...

couples of (GType, attribute name) for each column, from first to last

Returns:

the new object, or null if an attribute's name was NULL or an empty string




2022 vala-language.org