mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
b1ed23e0df
* 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().
53 lines
1.1 KiB
JSON
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" ]
|
|
}
|
|
]
|
|
}
|
|
}
|