2007-08-01 Emmanuele Bassi <ebassi@openedhand.com>

* clutter/clutter-actor.[ch]: Add floating-point variant of the
	clutter_actor_get_r[xyz]angx() functions.
This commit is contained in:
Emmanuele Bassi 2007-08-01 13:11:43 +00:00
parent 4170d7cc43
commit fbadfa1a6b
5 changed files with 73 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-08-01 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-actor.[ch]: Add floating-point variant of the
clutter_actor_get_r[xyz]angx() functions.
2007-07-31 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-stage.[ch]: Fix clutter_stage_set_user_resizable()

View File

@ -2161,7 +2161,7 @@ clutter_actor_rotate_yx (ClutterActor *self,
* clutter_actor_get_rxangx:
* @self: A #ClutterActor
*
* Gets the angle of rotation around x axis in degrees.
* Gets the angle of rotation around the X axis.
*
* Returns: the angle or rotation, as a fixed point value
*
@ -2175,11 +2175,29 @@ clutter_actor_get_rxangx (ClutterActor *self)
return self->priv->rxang;
}
/**
* clutter_actor_get_rxang:
* @self: a #ClutterActor
*
* Gets the angle of rotation around the X axis.
*
* Return value: the angle of rotation
*
* Since: 0.4
*/
gdouble
clutter_actor_get_rxang (ClutterActor *self)
{
g_return_val_if_fail (CLUTTER_IS_ACTOR (self), 0.);
return CLUTTER_FIXED_TO_FLOAT (self->priv->rxang);
}
/**
* clutter_actor_get_ryangx:
* @self: A #ClutterActor
*
* Gets the angle of rotation around y axis in degrees.
* Gets the angle of rotation around the Y axis.
*
* Return value: the angle of rotation, as a fixed point value
*
@ -2189,9 +2207,28 @@ ClutterFixed
clutter_actor_get_ryangx (ClutterActor *self)
{
g_return_val_if_fail (CLUTTER_IS_ACTOR (self), 0);
return self->priv->ryang;
}
/**
* clutter_actor_get_ryang:
* @self: a #ClutterActor
*
* Gets the angle of rotation around the Y axis.
*
* Return value: the angle of rotation
*
* Since: 0.4
*/
gdouble
clutter_actor_get_ryang (ClutterActor *self)
{
g_return_val_if_fail (CLUTTER_IS_ACTOR (self), 0.);
return CLUTTER_FIXED_TO_FLOAT (self->priv->ryang);
}
/**
* clutter_actor_get_rzangx:
* @self: A #ClutterActor
@ -2209,6 +2246,24 @@ clutter_actor_get_rzangx (ClutterActor *self)
return self->priv->rzang;
}
/**
* clutter_actor_get_rzang:
* @self: a #ClutterActor
*
* Gets the angle of rotation around the Z axis.
*
* Return value: the angle of rotation
*
* Since: 0.4
*/
gdouble
clutter_actor_get_rzang (ClutterActor *self)
{
g_return_val_if_fail (CLUTTER_IS_ACTOR (self), 0.);
return CLUTTER_FIXED_TO_FLOAT (self->priv->rzang);
}
/**
* clutter_actor_set_clip:
* @self: A #ClutterActor

View File

@ -222,6 +222,9 @@ void clutter_actor_rotate_zx (ClutterActor *sel
ClutterFixed angle,
gint x,
gint y);
gdouble clutter_actor_get_rxang (ClutterActor *self);
gdouble clutter_actor_get_ryang (ClutterActor *self);
gdouble clutter_actor_get_rzang (ClutterActor *self);
ClutterFixed clutter_actor_get_rxangx (ClutterActor *self);
ClutterFixed clutter_actor_get_ryangx (ClutterActor *self);
ClutterFixed clutter_actor_get_rzangx (ClutterActor *self);

View File

@ -1,3 +1,8 @@
2007-08-01 Emmanuele Bassi <ebassi@openedhand.com>
* clutter-sections.txt: Add clutter_actot_get_r[xyz]ang()
functions.
2007-07-31 Emmanuele Bassi <ebassi@openedhand.com>
* clutter-sections.txt: Update ClutterBackend API.

View File

@ -340,6 +340,9 @@ clutter_actor_get_scalex
clutter_actor_get_scale
clutter_actor_get_abs_size
clutter_actor_apply_transform_to_point
clutter_actor_get_rxang
clutter_actor_get_ryang
clutter_actor_get_rzang
clutter_actor_get_rxangx
clutter_actor_get_ryangx
clutter_actor_get_rzangx