mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
79a4dbb329
GEnum nicknames can be used to set properties in JSON definitions, so added a callout to the JSON example explaining this, and showing how to derive the nickname for an enumeration value. Modified the example code to use nicknames as well.
35 lines
550 B
JSON
35 lines
550 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" : "center",
|
|
"y-align" : "center"
|
|
},
|
|
|
|
"children" : [
|
|
{
|
|
"id" : "rectangle",
|
|
"type" : "ClutterRectangle",
|
|
"width" : 200,
|
|
"height" : 200,
|
|
"color" : "red"
|
|
}
|
|
]
|
|
}
|
|
|
|
]
|