mirror of
https://github.com/brl/mutter.git
synced 2024-11-13 01:36:10 -05:00
14f1606d26
* tests/test-script.c: * tests/test-script.json: Rejig the test case and add a path behaviour to test the knot parsing code.
60 lines
1.3 KiB
JSON
60 lines
1.3 KiB
JSON
{
|
|
"My Scene" : {
|
|
"id" : "main-stage",
|
|
"type" : "ClutterStage",
|
|
"color" : "white",
|
|
"width" : 500,
|
|
"height" : 400,
|
|
"children" : [
|
|
{
|
|
"id" : "red-button",
|
|
"type" : "ClutterRectangle",
|
|
"color" : "#ff0000ff",
|
|
"x" : 50,
|
|
"y" : 50,
|
|
"width" : 100,
|
|
"height" : 100,
|
|
"visible" : true,
|
|
"reactive" : true,
|
|
"behaviours" : [ "fade-behaviour", "path-behaviour" ]
|
|
},
|
|
{
|
|
"id" : "green-button",
|
|
"type" : "ClutterRectangle",
|
|
"color" : "#00ff00ff",
|
|
"x" : 200,
|
|
"y" : 50,
|
|
"width" : 100,
|
|
"height" : 100,
|
|
"visible" : true,
|
|
"reactive" : true
|
|
},
|
|
{
|
|
"id" : "red-hand",
|
|
"type" : "ClutterTexture",
|
|
"pixbuf" : "redhand.png",
|
|
"x" : 50,
|
|
"y" : 50,
|
|
"opacity" : 100,
|
|
"visible" : true,
|
|
"behaviours" : [ "rotate-behaviour", "fade-behaviour" ]
|
|
},
|
|
{
|
|
"id" : "label",
|
|
"type" : "ClutterLabel",
|
|
"x" : 50,
|
|
"y" : 200,
|
|
"width" : 400,
|
|
"text" : "Clutter\tScript",
|
|
"font-name" : "Sans 24px",
|
|
"color" : "black",
|
|
"alignment" : "center",
|
|
"wrap" : false,
|
|
"ellipsize" : "none",
|
|
"visible" : true
|
|
}
|
|
"blue-button",
|
|
]
|
|
}
|
|
}
|