mirror of
https://github.com/brl/mutter.git
synced 2024-11-13 01:36:10 -05:00
2c3ca20cdc
It's not necessary to use the default stage, so don't encourage this in the JSON example.
35 lines
594 B
JSON
35 lines
594 B
JSON
[
|
|
{
|
|
"id" : "stage",
|
|
"type" : "ClutterStage",
|
|
"width" : 400,
|
|
"height" : 400,
|
|
"color" : "#333355ff",
|
|
"children" : [ "box" ]
|
|
},
|
|
|
|
{
|
|
"id" : "box",
|
|
"type" : "ClutterBox",
|
|
"width" : 400,
|
|
"height" : 400,
|
|
|
|
"layout-manager" : {
|
|
"type" : "ClutterBinLayout",
|
|
"x-align" : "CLUTTER_BIN_ALIGNMENT_CENTER",
|
|
"y-align" : "CLUTTER_BIN_ALIGNMENT_CENTER"
|
|
},
|
|
|
|
"children" : [
|
|
{
|
|
"id" : "rectangle",
|
|
"type" : "ClutterRectangle",
|
|
"width" : 200,
|
|
"height" : 200,
|
|
"color" : "red"
|
|
}
|
|
]
|
|
}
|
|
|
|
]
|