GtkTreeStore

## GtkTreeStore GtkTreeStore — A tree-like data structure that can be used with the GtkTreeView |

## Includes

    #include <gtk/gtk.h>

## Description

The GtkTreeStore object is a list model for use with a GtkTreeView widget. It implements the GtkTreeModel interface, and consequentialy, can use all of the methods available there. It also implements the GtkTreeSortable interface so it can be sorted by the view. Finally, it also implements the tree drag and drop interfaces.

### GtkTreeStore as GtkBuildable

The GtkTreeStore implementation of the GtkBuildable interface allows to specify the model columns with a <columns> element that may contain multiple <column> elements, each specifying one model column. The "type" attribute specifies the data type for the column.

Example 21. A UI Definition fragment for a tree store

    1
    2
    3
    4
    5
    6
    7
    <object class="GtkTreeStore">
      <columns>
        <column type="gchararray"/>
        <column type="gchararray"/>
        <column type="gint"/>
      </columns>
    </object>

## Functions

## Types and Values

## See Also

GtkTreeModel, GtkTreeStore