Top | ![]() |
![]() |
![]() |
![]() |
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
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.
Since: 0.6
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.
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] |
Since: 0.6
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 { };
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