## ClutterListModel ClutterListModel — List model implementation |

## Functions

ClutterModel * | clutter_list_model_new ()
ClutterModel * | clutter_list_model_newv ()

## Types and Values

struct | ClutterListModel
struct | ClutterListModelClass

## Object Hierarchy

        GObject
        ╰── ClutterModel
            ╰── ClutterListModel

## Implemented Interfaces

ClutterListModel implements ClutterScriptable.

## Description

ClutterListModel is a ClutterModel implementation provided by Clutter. ClutterListModel uses a GSequence for storing the values for each row, so it's optimized for insertion and look up in sorted lists.

ClutterListModel is available since Clutter 0.6

## Functions

### clutter_list_model_new ()

    ClutterModel *
    clutter_list_model_new (guint n_columns,
                            ...);

`clutter_list_model_new` has been deprecated since version 1.24 and should not be used in newly-written code.

Use GListStore instead

Creates a new default model with `n_columns` columns with the types and names passed in.

For example:

    1
    2
    3
    4
    model = clutter_list_model_new (3,
                                    G_TYPE_INT,      "Score",
                                    G_TYPE_STRING,   "Team",
                                    GDK_TYPE_PIXBUF, "Logo");

will create a new ClutterModel with three columns of type int, string and GdkPixbuf respectively.

Note that the name of the column can be set to `NULL`, in which case the canonical name of the type held by the column will be used as the title.

#### Parameters

n_columns | number of columns in the model |
... | `n_columns` number of GType and string pairs |

#### Returns

a new ClutterListModel

Since: 0.6

### clutter_list_model_newv ()

    ClutterModel *
    clutter_list_model_newv (guint n_columns,
                             GType *types,
                             const gchar * const names[]);

`clutter_list_model_newv` has been deprecated since version 1.24 and should not be used in newly-written code.

Use GListStore instead

Non-vararg version of `clutter_list_model_new()`. This function is useful for language bindings.

#### Parameters

n_columns | number of columns in the model |
types | an array of GType types for the columns, from first to last. | [array length=n_columns]
names | an array of names for the columns, from first to last. | [array length=n_columns]

#### Returns

a new default ClutterModel.

[transfer full]

Since: 0.6

## Types and Values

### struct ClutterListModel

    struct ClutterListModel;

`ClutterListModel` has been deprecated since version 1.24 and should not be used in newly-written code.

Use GListStore instead

The ClutterListModel struct contains only private data.

Since: 0.6

### struct ClutterListModelClass

    struct ClutterListModelClass {
    };

`ClutterListModelClass` has been deprecated since version 1.24 and should not be used in newly-written code.

Use GListStore instead

The ClutterListModelClass struct contains only private data.

Since: 0.6