Merge branch 'scale-center'

Bug 1349 - Using the anchor point to set the scale center is messy

The branch adds an extra center point for scaling which can be used
for example to set a scale about the center without affecting the
position of the actor.

The scale center can be specified as a unit offset from the origin or
as a gravity. If specified as a gravity it will be stored as a
fraction of the actor's size so that the position will track when the
actor changes size.

The anchor point and rotation centers have been modified so they can
be set with a gravity in the same way. However, only the Z rotation
exposes a property to set using a gravity because the other two
require a Z coordinate which doesn't make sense to interpret as a
fraction of the actor's width or height.

Conflicts:

	clutter/clutter-actor.c
This commit is contained in:
Neil Roberts
2009-01-28 09:08:19 +00:00
8 changed files with 1607 additions and 437 deletions

View File

@ -352,7 +352,9 @@ clutter_actor_set_y
clutter_actor_get_y
clutter_actor_move_by
clutter_actor_set_rotation
clutter_actor_set_z_rotation_from_gravity
clutter_actor_get_rotation
clutter_actor_get_z_rotation_gravity
clutter_actor_is_rotated
clutter_actor_set_opacity
clutter_actor_get_opacity
@ -381,7 +383,11 @@ clutter_actor_get_stage
clutter_actor_set_depth
clutter_actor_get_depth
clutter_actor_set_scale
clutter_actor_set_scale_full
clutter_actor_set_scale_with_gravity
clutter_actor_get_scale
clutter_actor_get_scale_center
clutter_actor_get_scale_gravity
clutter_actor_is_scaled
clutter_actor_apply_transform_to_point
clutter_actor_transform_stage_point
@ -400,6 +406,7 @@ clutter_actor_box_get_from_vertices
clutter_actor_set_anchor_point
clutter_actor_get_anchor_point
clutter_actor_set_anchor_point_from_gravity
clutter_actor_get_anchor_point_gravity
clutter_actor_move_anchor_point
clutter_actor_move_anchor_point_from_gravity
@ -427,6 +434,8 @@ clutter_actor_set_positionu
clutter_actor_get_positionu
clutter_actor_set_sizeu
clutter_actor_get_sizeu
clutter_actor_set_scale_fullu
clutter_actor_get_scale_centeru
clutter_actor_set_anchor_pointu
clutter_actor_get_anchor_pointu
clutter_actor_move_anchor_pointu
@ -438,12 +447,6 @@ clutter_actor_move_byu
clutter_actor_get_transformed_positionu
clutter_actor_get_transformed_sizeu
<SUBSECTION>
clutter_actor_set_scalex
clutter_actor_get_scalex
clutter_actor_set_rotationx
clutter_actor_get_rotationx
<SUBSECTION>
clutter_actor_grab_key_focus
clutter_actor_get_pango_context