Hi
in the following example from the cookbook, we have a ClutterBinLayout 
layout-manager with "x-align" and  "y-align" set to "center" as default 
behavior for childern of the stage / box.
How can I change these  "x-align" and  "y-align" for individual children.
I tried to add   "x-align" and  "y-align" as properties to the rectangle child, 
but that did not have the desired effect.
Thx for any hints,
Roland



[
  {
    "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"
      }
    ]
  }

]

_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to