Package: gtk

Class gtk-tree-store

Superclasses

Documented Subclasses

None

Direct Slots

None

Details

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

GtkTreeStore as GtkBuildable

The gtk-tree-store implementation of the gtk-buildable 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: A UI Definition fragment for a tree store
<object class="GtkTreeStore">
  <columns>
    <column type="gchararray"/>
    <column type="gchararray"/>
    <column type="gint"/>
  </columns>
</object>    
 

Inherited Slot Access Functions

See also

2021-3-3