2007-10-09 16:44:44 +00:00
|
|
|
{
|
|
|
|
"My Scene" : {
|
|
|
|
"id" : "main-stage",
|
|
|
|
"type" : "ClutterStage",
|
|
|
|
"color" : "white",
|
2007-11-15 15:24:43 +00:00
|
|
|
"signals" : [
|
|
|
|
{ "name" : "key-press-event", "handler" : "clutter_main_quit" }
|
|
|
|
],
|
2007-10-09 16:44:44 +00:00
|
|
|
"children" : [
|
|
|
|
{
|
|
|
|
"id" : "red-button",
|
|
|
|
"type" : "ClutterRectangle",
|
|
|
|
"color" : "#ff0000ff",
|
2007-11-14 13:36:31 +00:00
|
|
|
"x" : 50, "y" : 50, "width" : 100, "height" : 100,
|
2007-10-09 16:44:44 +00:00
|
|
|
"visible" : true,
|
2007-10-25 14:46:02 +00:00
|
|
|
"reactive" : true,
|
2007-12-10 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c:
(clutter_actor_set_property),
(clutter_actor_get_property),
(clutter_actor_class_init): Add the rotation-* properties,
controlling the rotation angle and center on each axis. (#614)
(parse_rotation_array), (parse_rotation),
(clutter_actor_parse_custom_node),
(clutter_actor_set_custom_property),
(clutter_scriptable_iface_init): Add a new "rotation" custom
property for expressing the rotation along each axis in a
compact way:
"rotation" : [
{ "x-axis" : [ <angle>, [ <y>, <z> ] ] },
{ "y-axis" : [ <angle>, [ <x>, <z> ] ] },
{ "z-axis" : [ <angle>, [ <x>, <y> ] ] }
]
(clutter_geometry_get_type),(clutter_vertex_get_type),
(clutter_actor_box_get_type): Use the I_() macro instead of
directly calling g_intern_static_string().
* clutter/clutter-entry.c (clutter_entry_request_coords):
* clutter/clutter-label.c (clutter_label_ensure_layout),
(clutter_label_request_coords): Use CLUTTER_UNITS_FROM_DEVICE()
instead of CLUTTER_UNITS_FROM_INT(), as "device" means "pixels".
* clutter/clutter-private.h: Add the I_() macro for intern
static strings.
* tests/test-script.json: Test the newly added "rotation"
custom property.
2007-12-10 11:01:10 +00:00
|
|
|
"rotation" : [
|
|
|
|
{ "z-axis" : [ 45.0, [ 75, 75 ] ] }
|
|
|
|
],
|
2007-11-14 13:36:31 +00:00
|
|
|
"behaviours" : [ "fade-behaviour", "path-behaviour" ],
|
2007-10-09 16:44:44 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id" : "green-button",
|
|
|
|
"type" : "ClutterRectangle",
|
|
|
|
"color" : "#00ff00ff",
|
2007-10-27 19:49:39 +00:00
|
|
|
"border-width" : 5,
|
|
|
|
"border-color" : "#00cc00ff",
|
2007-10-09 16:44:44 +00:00
|
|
|
"x" : 200,
|
|
|
|
"y" : 50,
|
|
|
|
"width" : 100,
|
|
|
|
"height" : 100,
|
|
|
|
"visible" : true,
|
2007-10-25 14:46:02 +00:00
|
|
|
"reactive" : true
|
2007-11-15 15:24:43 +00:00
|
|
|
"signals" : [
|
|
|
|
{ "name" : "button-press-event", "handler" : "clutter_main_quit" }
|
|
|
|
]
|
2007-10-18 12:31:07 +00:00
|
|
|
},
|
2007-10-09 16:44:44 +00:00
|
|
|
{
|
|
|
|
"id" : "red-hand",
|
|
|
|
"type" : "ClutterTexture",
|
|
|
|
"pixbuf" : "redhand.png",
|
2007-11-30 09:27:10 +00:00
|
|
|
"x" : "50%",
|
|
|
|
"y" : "50%",
|
|
|
|
"width" : "20mm",
|
|
|
|
"height" : "100px",
|
2007-10-09 16:44:44 +00:00
|
|
|
"opacity" : 100,
|
|
|
|
"visible" : true,
|
|
|
|
"behaviours" : [ "rotate-behaviour", "fade-behaviour" ]
|
2007-10-18 12:31:07 +00:00
|
|
|
},
|
2007-11-14 13:36:31 +00:00
|
|
|
{
|
|
|
|
"id" : "red-hand-clone",
|
|
|
|
"type" : "ClutterCloneTexture",
|
|
|
|
"parent-texture" : "red-hand",
|
|
|
|
"x" : 250,
|
|
|
|
"y" : 150,
|
|
|
|
"opacity" : 100,
|
|
|
|
"visible" : true
|
|
|
|
},
|
2007-10-25 14:46:02 +00:00
|
|
|
{
|
|
|
|
"id" : "label",
|
|
|
|
"type" : "ClutterLabel",
|
|
|
|
"x" : 50,
|
|
|
|
"y" : 200,
|
|
|
|
"width" : 400,
|
|
|
|
"text" : "Clutter\tScript",
|
|
|
|
"font-name" : "Sans 24px",
|
|
|
|
"color" : "black",
|
|
|
|
"alignment" : "center",
|
|
|
|
"wrap" : false,
|
|
|
|
"ellipsize" : "none",
|
|
|
|
"visible" : true
|
2007-12-10 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.c:
(clutter_actor_set_property),
(clutter_actor_get_property),
(clutter_actor_class_init): Add the rotation-* properties,
controlling the rotation angle and center on each axis. (#614)
(parse_rotation_array), (parse_rotation),
(clutter_actor_parse_custom_node),
(clutter_actor_set_custom_property),
(clutter_scriptable_iface_init): Add a new "rotation" custom
property for expressing the rotation along each axis in a
compact way:
"rotation" : [
{ "x-axis" : [ <angle>, [ <y>, <z> ] ] },
{ "y-axis" : [ <angle>, [ <x>, <z> ] ] },
{ "z-axis" : [ <angle>, [ <x>, <y> ] ] }
]
(clutter_geometry_get_type),(clutter_vertex_get_type),
(clutter_actor_box_get_type): Use the I_() macro instead of
directly calling g_intern_static_string().
* clutter/clutter-entry.c (clutter_entry_request_coords):
* clutter/clutter-label.c (clutter_label_ensure_layout),
(clutter_label_request_coords): Use CLUTTER_UNITS_FROM_DEVICE()
instead of CLUTTER_UNITS_FROM_INT(), as "device" means "pixels".
* clutter/clutter-private.h: Add the I_() macro for intern
static strings.
* tests/test-script.json: Test the newly added "rotation"
custom property.
2007-12-10 11:01:10 +00:00
|
|
|
"rotation" : [
|
|
|
|
{ "y-axis" : [ 60.0, [ 275, 100 ] ] },
|
|
|
|
{ "z-axis" : [ 45.0, [ 75, 75 ] ] }
|
|
|
|
],
|
2007-10-25 14:46:02 +00:00
|
|
|
}
|
|
|
|
"blue-button",
|
2007-10-09 16:44:44 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|