mirror of
https://github.com/brl/mutter.git
synced 2024-11-30 03:50:47 -05:00
a67111a17c
To support recipe about connecting signals in script.
41 lines
746 B
JSON
41 lines
746 B
JSON
[
|
|
{
|
|
"id" : "stage",
|
|
"type" : "ClutterStage",
|
|
"width" : 300,
|
|
"height" : 300,
|
|
"color" : "#335",
|
|
|
|
"signals" : [
|
|
{ "name" : "destroy", "handler" : "clutter_main_quit" }
|
|
],
|
|
|
|
"children" : [ "rectangle" ]
|
|
},
|
|
|
|
{
|
|
"id" : "rectangle",
|
|
"type" : "ClutterRectangle",
|
|
"width" : 200,
|
|
"height" : 200,
|
|
"x" : 50,
|
|
"y" : 50,
|
|
"color" : "#a90",
|
|
"rotation-center-z-gravity" : "center",
|
|
"reactive" : true,
|
|
|
|
"signals" : [
|
|
{ "name" : "motion-event", "handler" : "foo_pointer_motion_cb" }
|
|
],
|
|
|
|
"actions" : [
|
|
{
|
|
"type" : "ClutterClickAction",
|
|
"signals" : [
|
|
{ "name" : "clicked", "handler" : "foo_button_clicked_cb" }
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|