## BtObjectListModel

BtObjectListModel — data model class for some widgets

## Synopsis

    #include "bt-edit.h"

    struct              BtObjectListModel;
    void                bt_object_list_model_append         (BtObjectListModel *model,
                                                             GObject *object);
    GObject *           bt_object_list_model_get_object     (BtObjectListModel *model,
                                                             GtkTreeIter *iter);
    BtObjectListModel * bt_object_list_model_new            (gint n_columns,
                                                             GType object_type,
                                                             ...);

## Object Hierarchy

      GObject
       +----BtObjectListModel

## Implemented Interfaces

BtObjectListModel implements GtkTreeModel.

## Description

Allows to bind gobject properties to model columns. Does not copy the data and thus keeps the widget always up-to-date.

## Details

### struct BtObjectListModel

    struct BtObjectListModel;

Data model for GtkTreeView or GtkComboBox.

### bt_object_list_model_append ()

    void                bt_object_list_model_append         (BtObjectListModel *model,
                                                             GObject *object);

Append a new row to the `model`. The `object` has to have the same type as given to `bt_object_list_model_new()`.

`model` : | the model
`object` : | the object to append

### bt_object_list_model_get_object ()

    GObject *           bt_object_list_model_get_object     (BtObjectListModel *model,
                                                             GtkTreeIter *iter);

The the GObject for the iter.

`model` : | the model
`iter` : | the iter

### bt_object_list_model_new ()

    BtObjectListModel * bt_object_list_model_new            (gint n_columns,
                                                             GType object_type,
                                                             ...);

Creates a list model mapping object properties to model columns.

`n_columns` : | number of columns
`object_type` : | the GType of the objects in the model
`...` : | property names for the columns
Returns : | the model.