2008-03-06 Emmanuele Bassi <ebassi@openedhand.com>
authorEmmanuele Bassi <ebassi@openedhand.com>
Thu, 6 Mar 2008 04:37:00 +0000 (04:37 +0000)
committerEmmanuele Bassi <ebassi@openedhand.com>
Thu, 6 Mar 2008 04:37:00 +0000 (04:37 +0000)
commit7fc0bd0dd5723916e963c9f07f615539eb9c84b2
tree495504f3e43227c19d74bf23d333be3256626b25
parent37e9d94f4bf65ef6dfff192d734af43db8ec28af
2008-03-06  Emmanuele Bassi  <ebassi@openedhand.com>

Add support for the anchor point inside ClutterScript (#834,
David Stanczak)

* clutter/clutter-actor.c:
(clutter_actor_set_property),
(clutter_actor_get_property),
(clutter_actor_class_init): Add the :anchor-x and :anchor-y
properties to the ClutterActor class.

(clutter_actor_set_anchor_point),
(clutter_actor_set_anchor_pointu),
(clutter_actor_set_anchor_point_from_gravity): Reimplement
the pixel based and gravity based API using the units based
one. Emit the ::notify signal for the :anchor-x and :anchor-y
properties.

(parse_units),
(clutter_actor_parse_custom_node): Parse the :anchor-x and
:anchor-y properties using the custom units format (mm, px,
pt and %).

* tests/test-script.json: Test the newly added properties.
ChangeLog
clutter/clutter-actor.c
tests/test-script.json