Debian Codegraph @

tests/interactive/test-script.json

raw
1 {
2 "My Scene" : {
3 "id" : "main-stage",
4 "type" : "ClutterStage",
5 "title" : { "translatable" : true, "string" : "ClutterScript test" },
6 "color" : "white",
7 "signals" : [
8 { "name" : "key-press-event", "handler" : "clutter_main_quit" },
9 { "name" : "destroy", "handler" : "clutter_main_quit" }
10 ],
11 "children" : [
12 {
13 "id" : "red-button",
14 "type" : "ClutterRectangle",
15 "color" : "#ff0000ff",
16 "x" : 50, "y" : 50, "width" : 100, "height" : 100,
17 "reactive" : true,
18 "rotation" : [
19 { "z-axis" : [ 45.0, [ 75, 75 ] ] }
20 ],
21 "behaviours" : [ "fade-behaviour", "path-behaviour" ]
22 },
23 {
24 "id" : "green-button",
25 "type" : "ClutterRectangle",
26 "color" : "#00ff00ff",
27 "border-width" : 5,
28 "border-color" : "#00cc00ff",
29 "position" : [ 200.0, 50.0 ],
30 "size" : { "width" : 100.0, "height" : 100.0 },
31 "depth" : -200.0,
32 "reactive" : true,
33 "signals" : [
34 { "name" : "button-press-event", "handler" : "clutter_main_quit" }
35 ]
36 },
37 {
38 "id" : "red-hand",
39 "type" : "ClutterTexture",
40 "filename" : "redhand.png",
41 "position" : { "x" : 100.0, "y" : 100.0 },
42 "width" : "20 mm",
43 "keep-aspect-ratio" : true,
44 "anchor-x" : "5 em",
45 "anchor-y" : "5 pt",
46 "opacity" : 100,
47 "behaviours" : [ "rotate-behaviour", "fade-behaviour" ]
48 },
49 {
50 "id" : "red-hand-clone",
51 "type" : "ClutterClone",
52 "source" : "red-hand",
53 "position" : [ 250.0, 150.0 ],
54 "opacity" : 100
55 },
56 {
57 "id" : "label",
58 "type" : "ClutterText",
59 "x" : 50,
60 "y" : 200,
61 "text" : { "translatable" : true, "string" : "Clutter Script" },
62 "font-name" : "Sans 24px",
63 "color" : "black",
64 "line-alignment" : "center",
65 "line-wrap" : false,
66 "ellipsize" : "none",
67 "rotation" : [
68 { "y-axis" : [ 60.0, [ 275, 100 ] ] },
69 { "z-axis" : [ 45.0, [ 75, 75 ] ] }
70 ]
71 }
72 ]
73 }
74 }