TreeStore


Description:

[ CCode ( has_construct_function = false , sentinel = "" ) ]
public TreeStore (int n_columns, ...)

Creates a new tree store.

Note:

Use [class@Gtk.TreeListModel] instead

The tree store will have n_columns, with each column using the corresponding type passed to this function.

Note that only types derived from standard GObject fundamental types are supported.

As an example:

```c gtk_tree_store_new (3, G_TYPE_INT, G_TYPE_STRING, GDK_TYPE_TEXTURE); ```

will create a new `GtkTreeStore` with three columns of type `int`, `gchararray`, and `GdkTexture` respectively.

Parameters:

n_columns

number of columns in the tree store

...

all `GType` types for the columns, from first to last

Returns:

a new `GtkTreeStore`