mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 09:59:03 +00:00
7fc0bd0dd5
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.