mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
2007-11-28 Tomas Frydrych <tf@openedhand.com>
* clutter/NEWS: Started 0.6.0 section with comment on actor anchor point. * clutter/clutter/clutter-actor.c: * clutter/clutter/clutter-actor.h: * clutter/clutter/clutter-behaviour-scale.c: * clutter/clutter/clutter-deprecated.h: (clutter_actor_set_anchor_point): (clutter_actor_set_anchor_pointu): (clutter_actor_get_anchor_point): (clutter_actor_get_anchor_pointu): (clutter_actor_set_anchor_point_from_gravity): New anchor point API deprecating old gravity scaling, added comments on modelview matrix construction to ClutterActor documentation. (clutter_actor_set_scale_with_gravity): (clutter_actor_set_scale_with_gravityx): Deprecated; use clutter_actor_set_anchor_point_from_gravity() instead.
This commit is contained in:
@ -82,7 +82,13 @@ scale_frame_foreach (ClutterBehaviour *behaviour,
|
||||
ClutterFixed scale = GPOINTER_TO_UINT (data);
|
||||
ClutterGravity gravity = priv->gravity;
|
||||
|
||||
clutter_actor_set_scale_with_gravityx (actor, scale, scale, gravity);
|
||||
/* Don't mess with the actor anchor point of gravity is set to
|
||||
* none
|
||||
*/
|
||||
if (gravity != CLUTTER_GRAVITY_NONE)
|
||||
clutter_actor_set_anchor_point_from_gravity (actor, gravity);
|
||||
|
||||
clutter_actor_set_scalex (actor, scale, scale);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -170,7 +176,7 @@ clutter_behaviour_scale_class_init (ClutterBehaviourScaleClass *klass)
|
||||
* ClutterBehaviourScale:scale-start:
|
||||
*
|
||||
* The initial scaling factor for the actors.
|
||||
*
|
||||
*
|
||||
* Since: 0.2
|
||||
*/
|
||||
g_object_class_install_property (gobject_class,
|
||||
@ -275,8 +281,8 @@ clutter_behaviour_scale_newx (ClutterAlpha *alpha,
|
||||
ClutterBehaviourScale *behave;
|
||||
|
||||
g_return_val_if_fail (alpha == NULL || CLUTTER_IS_ALPHA (alpha), NULL);
|
||||
|
||||
behave = g_object_new (CLUTTER_TYPE_BEHAVIOUR_SCALE,
|
||||
|
||||
behave = g_object_new (CLUTTER_TYPE_BEHAVIOUR_SCALE,
|
||||
"alpha", alpha,
|
||||
NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user