diff --git a/clutter/clutter-model.c b/clutter/clutter-model.c index 27e0dafe4..7a485f3c3 100644 --- a/clutter/clutter-model.c +++ b/clutter/clutter-model.c @@ -114,6 +114,30 @@ * implementation called #ClutterListModel which has been optimised * for insertion and look up in sorted lists. * + * + * ClutterModel custom properties for #ClutterScript + * #ClutterModel defines a custom property "columns" for #ClutterScript + * which allows defining the column names and types. + * + * Example of the "columns" custom property + * The definition below will create a #ClutterListModel with three + * columns: the first one with name "Name" and containing strings; the + * second one with name "Score" and containing integers; the third one with + * name "Icon" and containing #ClutterTextures. + * + * { + * "type" : "ClutterListModel", + * "id" : "teams-model", + * "columns" : [ + * [ "Name", "gchararray" ], + * [ "Score", "gint" ], + * [ "Icon", "ClutterTexture" ] + * ] + * } + * + * + * + * * #ClutterModel is available since Clutter 0.6 */