2010-09-01 09:21:23 +00:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"type" : "ClutterStage",
|
|
|
|
"id" : "stage",
|
2010-09-09 11:02:02 +00:00
|
|
|
"width" : 300,
|
|
|
|
"height" : 200,
|
2010-09-01 09:21:23 +00:00
|
|
|
"color" : "#333355ff",
|
|
|
|
|
|
|
|
"signals" : [
|
|
|
|
{ "name" : "destroy", "handler" : "clutter_main_quit" }
|
|
|
|
],
|
|
|
|
|
|
|
|
"children" : [
|
|
|
|
{
|
|
|
|
"type" : "ClutterRectangle",
|
|
|
|
"id" : "rect1",
|
2010-09-09 11:02:02 +00:00
|
|
|
"color" : "white",
|
2010-09-01 09:21:23 +00:00
|
|
|
"width" : 50,
|
|
|
|
"height" : 50,
|
2010-09-09 11:02:02 +00:00
|
|
|
"y" : 50,
|
2010-09-01 09:21:23 +00:00
|
|
|
"reactive" : true,
|
|
|
|
"signals" : [
|
|
|
|
{ "name" : "button-press-event", "handler" : "foo_button_pressed_cb" }
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"type" : "ClutterRectangle",
|
|
|
|
"id" : "rect2",
|
|
|
|
"color" : "blue",
|
|
|
|
"width" : 50,
|
|
|
|
"height" : 50,
|
2010-09-09 11:02:02 +00:00
|
|
|
"y" : 50,
|
2010-09-01 09:21:23 +00:00
|
|
|
"reactive" : true,
|
|
|
|
"signals" : [
|
|
|
|
{ "name" : "button-press-event", "handler" : "foo_button_pressed_cb" }
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"type" : "ClutterRectangle",
|
|
|
|
"id" : "rect3",
|
|
|
|
"color" : "green",
|
|
|
|
"width" : 50,
|
|
|
|
"height" : 50,
|
2010-09-09 11:02:02 +00:00
|
|
|
"y" : 50,
|
2010-09-01 09:21:23 +00:00
|
|
|
"reactive" : true,
|
|
|
|
"signals" : [
|
|
|
|
{ "name" : "button-press-event", "handler" : "foo_button_pressed_cb" }
|
|
|
|
]
|
2010-09-09 11:02:02 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"type" : "ClutterRectangle",
|
|
|
|
"id" : "rect4",
|
|
|
|
"color" : "red",
|
|
|
|
"width" : 50,
|
|
|
|
"height" : 50,
|
|
|
|
"y" : 50,
|
|
|
|
"reactive" : true,
|
|
|
|
"signals" : [
|
|
|
|
{ "name" : "button-press-event", "handler" : "foo_button_pressed_cb" }
|
|
|
|
]
|
|
|
|
},
|
2010-09-01 09:21:23 +00:00
|
|
|
|
2010-09-09 11:02:02 +00:00
|
|
|
{
|
|
|
|
"type" : "ClutterRectangle",
|
|
|
|
"id" : "rect5",
|
|
|
|
"color" : "grey",
|
|
|
|
"width" : 50,
|
|
|
|
"height" : 50,
|
|
|
|
"y" : 50,
|
|
|
|
"reactive" : true,
|
|
|
|
"signals" : [
|
|
|
|
{ "name" : "button-press-event", "handler" : "foo_button_pressed_cb" }
|
|
|
|
]
|
|
|
|
}
|
2010-09-01 09:21:23 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|