+
+ floating point number (gfloat, gdouble) |
+ number (int frac, int exp, int frac exp) |
+
+ 1.0 => 1.0
+ 1e-1 => 1e-1
+ 1E-1 => 1E-1
+ 0.1E-1 => 0.1E-1
+ |
+
+
+ integer (guint8, gint) |
+ number (int) |
+
+ 1 => 1
+ 0x00 => 0 (no hex in JSON)
+ 01 => 1 (no octal in JSON)
+ |
+
+
+ gboolean |
+ true/false |
+
+ TRUE => true
+ FALSE => false
+ |
+
+
+ gchar |
+ string |
+ "hello world" => "hello world" |
+
+
+ enum (e.g. Clutter constants) |
+ string |
+ CLUTTER_ALIGN_X_AXIS =>
+ "CLUTTER_ALIGN_X_AXIS" |
+
+
+ ClutterColor |
+ color string |
+
+ clutter_color_new (255, 0, 0, 255) =>
+ "red" or "#f00f" or
+ "#ff0000ff" ; alternatively,
+ "#f00" or "#ff0000"
+ (implicitly sets alpha value to 255)
+ |
+
+
+ ClutterActor (or other Clutter type) |
+ object |
+
+ clutter_rectangle_new () =>
+ { "type" : "ClutterRectangle" }
+ |
+
+
+ Property which takes a list or array of values |
+ array of objects and/or IDs |
+
+ clutter_container_add_actor (stage, rectangle) =>
+
+{
+ "id" : "stage",
+ "type" : "ClutterStage",
+ ...,
+
+ "children" : [
+ {
+ "id" : "rectangle",
+ "type" : "ClutterRectangle",
+ ...
+ }
+ ]
+}
+
+ |
+
+
+ NULL |
+ null |
+ - |
+
+
+