TreeStore


Object Hierarchy:

Gtk.TreeStore Gtk.TreeStore Gtk.TreeStore GLib.Object GLib.Object GLib.Object->Gtk.TreeStore Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.TreeStore Gtk.TreeDragDest Gtk.TreeDragDest Gtk.TreeDragDest->Gtk.TreeStore Gtk.TreeDragSource Gtk.TreeDragSource Gtk.TreeDragSource->Gtk.TreeStore Gtk.TreeModel Gtk.TreeModel Gtk.TreeModel->Gtk.TreeStore Gtk.TreeSortable Gtk.TreeSortable Gtk.TreeSortable->Gtk.TreeStore

Description:

[ CCode ( type_id = "gtk_tree_store_get_type ()" ) ]
public class TreeStore : Object, Buildable, TreeDragDest, TreeDragSource, TreeModel, TreeSortable

A tree-like data structure that can be used with the GtkTreeView

The `GtkTreeStore` object is a list model for use with a `GtkTreeView` widget. It implements the `GtkTreeModel` interface, and consequently, 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.

An example of a UI Definition fragment for a tree store:

<object class="GtkTreeStore">
<columns>
<column type="gchararray"/>
<column type="gchararray"/>
<column type="gint"/>
</columns>
</object>

Namespace: Gtk
Package: gtk4

Content:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class GLib.Object
All known members inherited from interface Gtk.TreeDragDest
All known members inherited from interface Gtk.TreeDragSource



2022 vala-language.org