mutter/tests/test-script.json
Emmanuele Bassi b1ed23e0df 2007-10-09 Emmanuele Bassi <ebassi@openedhand.com>
* tests/Makefile.am:
	* tests/test-script.c:
	* tests/test-script.json: Move part of the UI definition into
	its own file and exercise clutter_script_load_from_file().
2007-10-09 16:44:44 +00:00

53 lines
1.1 KiB
JSON

{
"My Scene" : {
"id" : "main-stage",
"type" : "ClutterStage",
"color" : "white",
"width" : 500,
"height" : 200,
"children" : [
{
"id" : "red-button",
"type" : "ClutterRectangle",
"color" : "#ff0000ff",
"x" : 50,
"y" : 50,
"width" : 100,
"height" : 100,
"visible" : true,
},
{
"id" : "green-button",
"type" : "ClutterRectangle",
"color" : "#00ff00ff",
"x" : 200,
"y" : 50,
"width" : 100,
"height" : 100,
"visible" : true,
"behaviours" : [ "fade-behaviour" ]
},
{
"id" : "blue-button",
"type" : "ClutterRectangle",
"color" : "#0000ffff",
"x" : 350,
"y" : 50,
"width" : 100,
"height" : 100,
"visible" : true,
},
{
"id" : "red-hand",
"type" : "ClutterTexture",
"pixbuf" : "redhand.png",
"x" : 50,
"y" : 50,
"opacity" : 100,
"visible" : true,
"behaviours" : [ "rotate-behaviour", "fade-behaviour" ]
}
]
}
}