mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 03:22:04 +00:00
2007-11-27 Tomas Frydrych <tf@openedhand.com>
* clutter/clutter-behaviour-ellipse.c: * clutter/clutter-behaviour-ellipse.h: (clutter_behaviour_ellipse_get_angle_startx): (clutter_behaviour_ellipse_set_angle_startx): (clutter_behaviour_ellipse_get_angle_endx): (clutter_behaviour_ellipse_set_angle_endx): (clutter_behaviour_ellipse_get_angle_tiltx): (clutter_behaviour_ellipse_set_angle_tiltx): Changed to take and return angles in degrees represented as ClutterFixed.
This commit is contained in:
parent
ceecc23a02
commit
55d53acc8f
48
ChangeLog
48
ChangeLog
@ -1,3 +1,15 @@
|
|||||||
|
2007-11-27 Tomas Frydrych <tf@openedhand.com>
|
||||||
|
* clutter/clutter-behaviour-ellipse.c:
|
||||||
|
* clutter/clutter-behaviour-ellipse.h:
|
||||||
|
(clutter_behaviour_ellipse_get_angle_startx):
|
||||||
|
(clutter_behaviour_ellipse_set_angle_startx):
|
||||||
|
(clutter_behaviour_ellipse_get_angle_endx):
|
||||||
|
(clutter_behaviour_ellipse_set_angle_endx):
|
||||||
|
(clutter_behaviour_ellipse_get_angle_tiltx):
|
||||||
|
(clutter_behaviour_ellipse_set_angle_tiltx):
|
||||||
|
Changed to take and return angles in degrees represented as
|
||||||
|
ClutterFixed.
|
||||||
|
|
||||||
2007-11-27 Emmanuele Bassi <ebassi@openedhand.com>
|
2007-11-27 Emmanuele Bassi <ebassi@openedhand.com>
|
||||||
|
|
||||||
* clutter/clutter-actor.c (clutter_actor_destroy): Remove the
|
* clutter/clutter-actor.c (clutter_actor_destroy): Remove the
|
||||||
@ -18,7 +30,7 @@
|
|||||||
if it is a top-level one (like ClutterStage); the backends are
|
if it is a top-level one (like ClutterStage); the backends are
|
||||||
responsible for setting that flag, as it might be the result of an
|
responsible for setting that flag, as it might be the result of an
|
||||||
asynchronous operation (e.g. on X11).
|
asynchronous operation (e.g. on X11).
|
||||||
|
|
||||||
* clutter/eglnative/clutter-stage-egl.c:
|
* clutter/eglnative/clutter-stage-egl.c:
|
||||||
(clutter_stage_egl_show),
|
(clutter_stage_egl_show),
|
||||||
(clutter_stage_egl_hide): Set/unset the CLUTTER_ACTOR_MAPPED flag
|
(clutter_stage_egl_hide): Set/unset the CLUTTER_ACTOR_MAPPED flag
|
||||||
@ -61,7 +73,7 @@
|
|||||||
every class overriding ClutterActor::request_coords() *must* chain
|
every class overriding ClutterActor::request_coords() *must* chain
|
||||||
up to the parent class method or the bounding box will not be
|
up to the parent class method or the bounding box will not be
|
||||||
saved inside the ClutterActor structure.
|
saved inside the ClutterActor structure.
|
||||||
|
|
||||||
* clutter/clutter-entry.c:
|
* clutter/clutter-entry.c:
|
||||||
* clutter/clutter-group.c:
|
* clutter/clutter-group.c:
|
||||||
* clutter/clutter-hbox.c:
|
* clutter/clutter-hbox.c:
|
||||||
@ -154,7 +166,7 @@
|
|||||||
glFog() functions and enabling the GL_FOG flag.
|
glFog() functions and enabling the GL_FOG flag.
|
||||||
|
|
||||||
* clutter/cogl/gl/cogl.c: Add GL implementation of cogl_fog_set().
|
* clutter/cogl/gl/cogl.c: Add GL implementation of cogl_fog_set().
|
||||||
|
|
||||||
* clutter/cogl/gles/cogl.c: Add GL/ES implementation of
|
* clutter/cogl/gles/cogl.c: Add GL/ES implementation of
|
||||||
cogl_fog_set().
|
cogl_fog_set().
|
||||||
|
|
||||||
@ -213,7 +225,7 @@
|
|||||||
|
|
||||||
(clutter_label_class_init),
|
(clutter_label_class_init),
|
||||||
(clutter_label_init): Set the :wrap property default to FALSE.
|
(clutter_label_init): Set the :wrap property default to FALSE.
|
||||||
|
|
||||||
* clutter/clutter-units.h: Add ClutterUnit-to-PangoUnit conversion
|
* clutter/clutter-units.h: Add ClutterUnit-to-PangoUnit conversion
|
||||||
macro.
|
macro.
|
||||||
|
|
||||||
@ -243,7 +255,7 @@
|
|||||||
(clutter_get_motion_events_frequency),
|
(clutter_get_motion_events_frequency),
|
||||||
(clutter_set_motion_events_frequency): Add accessors for the default
|
(clutter_set_motion_events_frequency): Add accessors for the default
|
||||||
motion events deliver frequency.
|
motion events deliver frequency.
|
||||||
|
|
||||||
(clutter_do_event): Throttle down motion events delivery using the
|
(clutter_do_event): Throttle down motion events delivery using the
|
||||||
motion events frequency setting, to avoid excessive redraws. (#608)
|
motion events frequency setting, to avoid excessive redraws. (#608)
|
||||||
|
|
||||||
@ -267,9 +279,9 @@
|
|||||||
|
|
||||||
Updated use of clutter_actor_set_rotation? in the following files:
|
Updated use of clutter_actor_set_rotation? in the following files:
|
||||||
|
|
||||||
* clutter/clutter-behaviour-rotate.c:
|
* clutter/clutter-behaviour-rotate.c:
|
||||||
* clutter/clutter-effect.c:
|
* clutter/clutter-effect.c:
|
||||||
* tests/test-actors.c:
|
* tests/test-actors.c:
|
||||||
* tests/test-project.c:
|
* tests/test-project.c:
|
||||||
|
|
||||||
2007-11-19 Emmanuele Bassi <ebassi@openedhand.com>
|
2007-11-19 Emmanuele Bassi <ebassi@openedhand.com>
|
||||||
@ -284,14 +296,14 @@
|
|||||||
* clutter/clutter-group.c:
|
* clutter/clutter-group.c:
|
||||||
* clutter/clutter-main.c:
|
* clutter/clutter-main.c:
|
||||||
* clutter/clutter-stage.c:
|
* clutter/clutter-stage.c:
|
||||||
* tests/test-events.c:
|
* tests/test-events.c:
|
||||||
Parent Actors no longer need to be set reactive for reactive
|
Parent Actors no longer need to be set reactive for reactive
|
||||||
children to get events. Also makes groups now pickable.
|
children to get events. Also makes groups now pickable.
|
||||||
(#597, #423)
|
(#597, #423)
|
||||||
|
|
||||||
* clutter/clutter-texture.c:
|
* clutter/clutter-texture.c:
|
||||||
Handle case when 1x1 tiled texture is created,
|
Handle case when 1x1 tiled texture is created,
|
||||||
falling 'back' to being non tiled. (#596)
|
falling 'back' to being non tiled. (#596)
|
||||||
|
|
||||||
* clutter/eglx/clutter-backend-egl.c:
|
* clutter/eglx/clutter-backend-egl.c:
|
||||||
Call EglTerminate on backend shutdown.
|
Call EglTerminate on backend shutdown.
|
||||||
@ -507,12 +519,12 @@
|
|||||||
2007-11-15 Neil J. Patel <njp@o-hand.com>
|
2007-11-15 Neil J. Patel <njp@o-hand.com>
|
||||||
|
|
||||||
* clutter/Makefile.am:
|
* clutter/Makefile.am:
|
||||||
* clutter/clutter-model.c:
|
* clutter/clutter-model.c:
|
||||||
* clutter/clutter-model.h:
|
* clutter/clutter-model.h:
|
||||||
* clutter/clutter.h:
|
* clutter/clutter.h:
|
||||||
* tests/Makefile.am:
|
* tests/Makefile.am:
|
||||||
* tests/test-model.c:
|
* tests/test-model.c:
|
||||||
Merged ClutterModel, which closes #443.
|
Merged ClutterModel, which closes #443.
|
||||||
|
|
||||||
2007-11-14 Emmanuele Bassi <ebassi@openedhand.com>
|
2007-11-14 Emmanuele Bassi <ebassi@openedhand.com>
|
||||||
|
|
||||||
@ -586,15 +598,15 @@
|
|||||||
* clutter/clutter-behaviour-depth.h:
|
* clutter/clutter-behaviour-depth.h:
|
||||||
* clutter/clutter-behaviour-ellipse.c:
|
* clutter/clutter-behaviour-ellipse.c:
|
||||||
* clutter/clutter-behaviour-ellipse.h:
|
* clutter/clutter-behaviour-ellipse.h:
|
||||||
* clutter/clutter-behaviour-path.c:
|
* clutter/clutter-behaviour-path.c:
|
||||||
* clutter/clutter-behaviour-rotate.c:
|
* clutter/clutter-behaviour-rotate.c:
|
||||||
* clutter/clutter-behaviour-rotate.h:
|
* clutter/clutter-behaviour-rotate.h:
|
||||||
* clutter/clutter-behaviour-scale.c:
|
* clutter/clutter-behaviour-scale.c:
|
||||||
* clutter/clutter-behaviour-scale.h:
|
* clutter/clutter-behaviour-scale.h:
|
||||||
* clutter/clutter-effect.c:
|
* clutter/clutter-effect.c:
|
||||||
* clutter/clutter-effect.h:
|
* clutter/clutter-effect.h:
|
||||||
* clutter/clutter-script.c:
|
* clutter/clutter-script.c:
|
||||||
* tests/test-depth.c:
|
* tests/test-depth.c:
|
||||||
* tests/test-script.c:
|
* tests/test-script.c:
|
||||||
|
|
||||||
2007-11-06 Øyvind Kolås <pippin@o-hand.com>
|
2007-11-06 Øyvind Kolås <pippin@o-hand.com>
|
||||||
@ -605,7 +617,7 @@
|
|||||||
the any event.
|
the any event.
|
||||||
(clutter_event_free): removed unused variable.
|
(clutter_event_free): removed unused variable.
|
||||||
* clutter/clutter-main.c: (deliver_event), (clutter_do_event): reduced
|
* clutter/clutter-main.c: (deliver_event), (clutter_do_event): reduced
|
||||||
amount of code. As well as deliver button-release events to the stage.
|
amount of code. As well as deliver button-release events to the stage.
|
||||||
|
|
||||||
2007-11-08 Rob Bradford <rob@openedhand.com>
|
2007-11-08 Rob Bradford <rob@openedhand.com>
|
||||||
|
|
||||||
|
@ -207,7 +207,7 @@ clutter_behaviour_ellipse_alpha_notify (ClutterBehaviour *behave,
|
|||||||
ClutterAngle diff;
|
ClutterAngle diff;
|
||||||
ClutterAngle angle_start = priv->angle_start + 256;
|
ClutterAngle angle_start = priv->angle_start + 256;
|
||||||
ClutterAngle angle_end = priv->angle_end + 256;
|
ClutterAngle angle_end = priv->angle_end + 256;
|
||||||
|
|
||||||
/* Work out the angular length of the arch represented by the
|
/* Work out the angular length of the arch represented by the
|
||||||
* end angle in CCW direction
|
* end angle in CCW direction
|
||||||
*/
|
*/
|
||||||
@ -223,7 +223,7 @@ clutter_behaviour_ellipse_alpha_notify (ClutterBehaviour *behave,
|
|||||||
{
|
{
|
||||||
diff = 1024 - angle_end + angle_start;
|
diff = 1024 - angle_end + angle_start;
|
||||||
}
|
}
|
||||||
|
|
||||||
angle = priv->angle_start - (diff * alpha / CLUTTER_ALPHA_MAX_ALPHA);
|
angle = priv->angle_start - (diff * alpha / CLUTTER_ALPHA_MAX_ALPHA);
|
||||||
}
|
}
|
||||||
else if (priv->angle_end < priv->angle_start &&
|
else if (priv->angle_end < priv->angle_start &&
|
||||||
@ -251,7 +251,7 @@ clutter_behaviour_ellipse_alpha_notify (ClutterBehaviour *behave,
|
|||||||
|
|
||||||
angle = priv->angle_start + (diff * alpha / CLUTTER_ALPHA_MAX_ALPHA);
|
angle = priv->angle_start + (diff * alpha / CLUTTER_ALPHA_MAX_ALPHA);
|
||||||
}
|
}
|
||||||
|
|
||||||
clutter_behaviour_ellipse_advance (self, angle, &knot);
|
clutter_behaviour_ellipse_advance (self, angle, &knot);
|
||||||
|
|
||||||
knot.x += priv->center.x;
|
knot.x += priv->center.x;
|
||||||
@ -805,7 +805,7 @@ clutter_behaviour_ellipse_set_angle_start (ClutterBehaviourEllipse *self,
|
|||||||
/**
|
/**
|
||||||
* clutter_behaviour_ellipse_set_angle_startx
|
* clutter_behaviour_ellipse_set_angle_startx
|
||||||
* @self: a #ClutterBehaviourEllipse
|
* @self: a #ClutterBehaviourEllipse
|
||||||
* @angle_start: #ClutterAngle at which movement starts
|
* @angle_start: An angle, as #ClutterFixed, at which movement starts, in degrees.
|
||||||
*
|
*
|
||||||
* Sets the angle at which movement starts.
|
* Sets the angle at which movement starts.
|
||||||
*
|
*
|
||||||
@ -813,14 +813,13 @@ clutter_behaviour_ellipse_set_angle_start (ClutterBehaviourEllipse *self,
|
|||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
clutter_behaviour_ellipse_set_angle_startx (ClutterBehaviourEllipse *self,
|
clutter_behaviour_ellipse_set_angle_startx (ClutterBehaviourEllipse *self,
|
||||||
ClutterAngle angle_start)
|
ClutterFixed angle_start)
|
||||||
{
|
{
|
||||||
ClutterBehaviourEllipsePrivate *priv;
|
ClutterBehaviourEllipsePrivate *priv;
|
||||||
ClutterAngle new_angle;
|
ClutterAngle new_angle;
|
||||||
|
|
||||||
g_return_if_fail (CLUTTER_IS_BEHAVIOUR_ELLIPSE (self));
|
g_return_if_fail (CLUTTER_IS_BEHAVIOUR_ELLIPSE (self));
|
||||||
|
|
||||||
new_angle = angle_start - 256;
|
new_angle = CLUTTER_ANGLE_FROM_DEGX (angle_start) - 256;
|
||||||
|
|
||||||
priv = self->priv;
|
priv = self->priv;
|
||||||
if (priv->angle_start != new_angle)
|
if (priv->angle_start != new_angle)
|
||||||
@ -854,16 +853,16 @@ clutter_behaviour_ellipse_get_angle_start (ClutterBehaviourEllipse *self)
|
|||||||
*
|
*
|
||||||
* Gets the angle at which movements starts.
|
* Gets the angle at which movements starts.
|
||||||
*
|
*
|
||||||
* Return value: a #ClutterAngle
|
* Return value: angle, as #ClutterFixed, in degrees.
|
||||||
*
|
*
|
||||||
* Since: 0.6
|
* Since: 0.6
|
||||||
*/
|
*/
|
||||||
ClutterAngle
|
ClutterFixed
|
||||||
clutter_behaviour_ellipse_get_angle_startx (ClutterBehaviourEllipse *self)
|
clutter_behaviour_ellipse_get_angle_startx (ClutterBehaviourEllipse *self)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (CLUTTER_IS_BEHAVIOUR_ELLIPSE (self), 0);
|
g_return_val_if_fail (CLUTTER_IS_BEHAVIOUR_ELLIPSE (self), 0);
|
||||||
|
|
||||||
return self->priv->angle_start;
|
return CLUTTER_ANGLE_TO_DEGX (self->priv->angle_start);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -888,7 +887,7 @@ clutter_behaviour_ellipse_set_angle_end (ClutterBehaviourEllipse *self,
|
|||||||
/**
|
/**
|
||||||
* clutter_behaviour_ellipse_set_angle_endx
|
* clutter_behaviour_ellipse_set_angle_endx
|
||||||
* @self: a #ClutterBehaviourEllipse
|
* @self: a #ClutterBehaviourEllipse
|
||||||
* @angle_end: #ClutterAngle at which movement ends
|
* @angle_end: angle, as #ClutterFixed, at which movement ends, in degrees.
|
||||||
*
|
*
|
||||||
* Sets the angle at which movement ends.
|
* Sets the angle at which movement ends.
|
||||||
*
|
*
|
||||||
@ -896,14 +895,14 @@ clutter_behaviour_ellipse_set_angle_end (ClutterBehaviourEllipse *self,
|
|||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
clutter_behaviour_ellipse_set_angle_endx (ClutterBehaviourEllipse *self,
|
clutter_behaviour_ellipse_set_angle_endx (ClutterBehaviourEllipse *self,
|
||||||
ClutterAngle angle_end)
|
ClutterFixed angle_end)
|
||||||
{
|
{
|
||||||
ClutterBehaviourEllipsePrivate *priv;
|
ClutterBehaviourEllipsePrivate *priv;
|
||||||
ClutterAngle new_angle;
|
ClutterAngle new_angle;
|
||||||
|
|
||||||
g_return_if_fail (CLUTTER_IS_BEHAVIOUR_ELLIPSE (self));
|
g_return_if_fail (CLUTTER_IS_BEHAVIOUR_ELLIPSE (self));
|
||||||
|
|
||||||
new_angle = angle_end - 256;
|
new_angle = CLUTTER_ANGLE_FROM_DEGX (angle_end) - 256;
|
||||||
|
|
||||||
priv = self->priv;
|
priv = self->priv;
|
||||||
|
|
||||||
@ -939,16 +938,16 @@ clutter_behaviour_ellipse_get_angle_end (ClutterBehaviourEllipse *self)
|
|||||||
*
|
*
|
||||||
* Gets the angle at which movements ends.
|
* Gets the angle at which movements ends.
|
||||||
*
|
*
|
||||||
* Return value: a #ClutterAngle
|
* Return value: angle, as #ClutterFixed, in degrees
|
||||||
*
|
*
|
||||||
* Since: 0.4
|
* Since: 0.4
|
||||||
*/
|
*/
|
||||||
ClutterAngle
|
ClutterFixed
|
||||||
clutter_behaviour_ellipse_get_angle_endx (ClutterBehaviourEllipse *self)
|
clutter_behaviour_ellipse_get_angle_endx (ClutterBehaviourEllipse *self)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (CLUTTER_IS_BEHAVIOUR_ELLIPSE (self), 0);
|
g_return_val_if_fail (CLUTTER_IS_BEHAVIOUR_ELLIPSE (self), 0);
|
||||||
|
|
||||||
return self->priv->angle_end;
|
return CLUTTER_ANGLE_TO_DEGX (self->priv->angle_end);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -978,8 +977,8 @@ clutter_behaviour_ellipse_set_angle_tilt (ClutterBehaviourEllipse *self,
|
|||||||
* clutter_behaviour_ellipse_set_angle_tiltx
|
* clutter_behaviour_ellipse_set_angle_tiltx
|
||||||
* @self: a #ClutterBehaviourEllipse
|
* @self: a #ClutterBehaviourEllipse
|
||||||
* @axis: a #ClutterRoateAxis
|
* @axis: a #ClutterRoateAxis
|
||||||
* @angle_tilt: #ClutterAngle tilt of the elipse around the center in the given
|
* @angle_tilt: tilt, as #ClutterFixed, of the elipse around the center in the given
|
||||||
* axis
|
* axis in degrees.
|
||||||
*
|
*
|
||||||
* Sets the angle at which the ellipse should be tilted around it's center.
|
* Sets the angle at which the ellipse should be tilted around it's center.
|
||||||
*
|
*
|
||||||
@ -988,14 +987,14 @@ clutter_behaviour_ellipse_set_angle_tilt (ClutterBehaviourEllipse *self,
|
|||||||
void
|
void
|
||||||
clutter_behaviour_ellipse_set_angle_tiltx (ClutterBehaviourEllipse *self,
|
clutter_behaviour_ellipse_set_angle_tiltx (ClutterBehaviourEllipse *self,
|
||||||
ClutterRotateAxis axis,
|
ClutterRotateAxis axis,
|
||||||
ClutterAngle angle_tilt)
|
ClutterFixed angle_tilt)
|
||||||
{
|
{
|
||||||
ClutterBehaviourEllipsePrivate *priv;
|
ClutterBehaviourEllipsePrivate *priv;
|
||||||
ClutterAngle new_angle;
|
ClutterAngle new_angle;
|
||||||
|
|
||||||
g_return_if_fail (CLUTTER_IS_BEHAVIOUR_ELLIPSE (self));
|
g_return_if_fail (CLUTTER_IS_BEHAVIOUR_ELLIPSE (self));
|
||||||
|
|
||||||
new_angle = angle_tilt - 256;
|
new_angle = CLUTTER_ANGLE_FROM_DEGX (angle_tilt) - 256;
|
||||||
|
|
||||||
priv = self->priv;
|
priv = self->priv;
|
||||||
|
|
||||||
@ -1058,11 +1057,11 @@ clutter_behaviour_ellipse_get_angle_tilt (ClutterBehaviourEllipse *self,
|
|||||||
*
|
*
|
||||||
* Gets the tilt of the ellipse around the center in the given axis.
|
* Gets the tilt of the ellipse around the center in the given axis.
|
||||||
*
|
*
|
||||||
* Return value: a #ClutterAngle
|
* Return value: angle, as #ClutterFixed, in degrees
|
||||||
*
|
*
|
||||||
* Since: 0.4
|
* Since: 0.4
|
||||||
*/
|
*/
|
||||||
ClutterAngle
|
ClutterFixed
|
||||||
clutter_behaviour_ellipse_get_angle_tiltx (ClutterBehaviourEllipse *self,
|
clutter_behaviour_ellipse_get_angle_tiltx (ClutterBehaviourEllipse *self,
|
||||||
ClutterRotateAxis axis)
|
ClutterRotateAxis axis)
|
||||||
{
|
{
|
||||||
@ -1071,11 +1070,11 @@ clutter_behaviour_ellipse_get_angle_tiltx (ClutterBehaviourEllipse *self,
|
|||||||
switch (axis)
|
switch (axis)
|
||||||
{
|
{
|
||||||
case CLUTTER_X_AXIS:
|
case CLUTTER_X_AXIS:
|
||||||
return self->priv->angle_tilt_x + 256;
|
return CLUTTER_ANGLE_TO_DEGX (self->priv->angle_tilt_x + 256);
|
||||||
case CLUTTER_Y_AXIS:
|
case CLUTTER_Y_AXIS:
|
||||||
return self->priv->angle_tilt_y + 256;
|
return CLUTTER_ANGLE_TO_DEGX (self->priv->angle_tilt_y + 256);
|
||||||
case CLUTTER_Z_AXIS:
|
case CLUTTER_Z_AXIS:
|
||||||
return self->priv->angle_tilt_z + 256;
|
return CLUTTER_ANGLE_TO_DEGX (self->priv->angle_tilt_z + 256);
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -1111,9 +1110,9 @@ clutter_behaviour_ellipse_set_tilt (ClutterBehaviourEllipse *self,
|
|||||||
/**
|
/**
|
||||||
* clutter_behaviour_ellipse_set_tiltx
|
* clutter_behaviour_ellipse_set_tiltx
|
||||||
* @self: a #ClutterBehaviourEllipse
|
* @self: a #ClutterBehaviourEllipse
|
||||||
* @angle_tilt_x: #ClutterAngle tilt of the elipse around the center in X axis
|
* @angle_tilt_x: tilt of the elipse in degrees, as #ClutterFixed, around the center in X axis
|
||||||
* @angle_tilt_y: #ClutterAngle tilt of the elipse around the center in Y axis
|
* @angle_tilt_y: tilt of the elipse in degrees, as #ClutterFixed, around the center in Y axis
|
||||||
* @angle_tilt_z: #ClutterAngle tilt of the elipse around the center in Z axis
|
* @angle_tilt_z: tilt of the elipse in degrees, as #ClutterFixed, around the center in Z axis
|
||||||
*
|
*
|
||||||
* Sets the angle at which the ellipse should be tilted around it's center.
|
* Sets the angle at which the ellipse should be tilted around it's center.
|
||||||
*
|
*
|
||||||
@ -1121,18 +1120,18 @@ clutter_behaviour_ellipse_set_tilt (ClutterBehaviourEllipse *self,
|
|||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
clutter_behaviour_ellipse_set_tiltx (ClutterBehaviourEllipse *self,
|
clutter_behaviour_ellipse_set_tiltx (ClutterBehaviourEllipse *self,
|
||||||
ClutterAngle angle_tilt_x,
|
ClutterFixed angle_tilt_x,
|
||||||
ClutterAngle angle_tilt_y,
|
ClutterFixed angle_tilt_y,
|
||||||
ClutterAngle angle_tilt_z)
|
ClutterFixed angle_tilt_z)
|
||||||
{
|
{
|
||||||
ClutterBehaviourEllipsePrivate *priv;
|
ClutterBehaviourEllipsePrivate *priv;
|
||||||
ClutterAngle new_angle_x, new_angle_y, new_angle_z;
|
ClutterAngle new_angle_x, new_angle_y, new_angle_z;
|
||||||
|
|
||||||
g_return_if_fail (CLUTTER_IS_BEHAVIOUR_ELLIPSE (self));
|
g_return_if_fail (CLUTTER_IS_BEHAVIOUR_ELLIPSE (self));
|
||||||
|
|
||||||
new_angle_x = angle_tilt_x - 256;
|
new_angle_x = CLUTTER_ANGLE_FROM_DEGX (angle_tilt_x) - 256;
|
||||||
new_angle_y = angle_tilt_y - 256;
|
new_angle_y = CLUTTER_ANGLE_FROM_DEGX (angle_tilt_y) - 256;
|
||||||
new_angle_z = angle_tilt_z - 256;
|
new_angle_z = CLUTTER_ANGLE_FROM_DEGX (angle_tilt_z) - 256;
|
||||||
|
|
||||||
priv = self->priv;
|
priv = self->priv;
|
||||||
|
|
||||||
@ -1158,7 +1157,7 @@ clutter_behaviour_ellipse_set_tiltx (ClutterBehaviourEllipse *self,
|
|||||||
|
|
||||||
g_object_notify (G_OBJECT (self), "angle-tilt-z");
|
g_object_notify (G_OBJECT (self), "angle-tilt-z");
|
||||||
}
|
}
|
||||||
|
|
||||||
g_object_thaw_notify (G_OBJECT (self));
|
g_object_thaw_notify (G_OBJECT (self));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1202,12 +1201,12 @@ clutter_behaviour_ellipse_get_tilt (ClutterBehaviourEllipse *self,
|
|||||||
/**
|
/**
|
||||||
* clutter_behaviour_ellipse_get_tiltx
|
* clutter_behaviour_ellipse_get_tiltx
|
||||||
* @self: a #ClutterBehaviourEllipse
|
* @self: a #ClutterBehaviourEllipse
|
||||||
* @angle_tilt_x: #ClutterAngle location for tilt of the elipse around the
|
* @angle_tilt_x: location for tilt of the elipse, as #ClutterFixed, around the
|
||||||
* center in X axis, or NULL.
|
* center in X axis in degrees, or NULL.
|
||||||
* @angle_tilt_y: #ClutterAngle location for tilt of the elipse around the
|
* @angle_tilt_y: location for tilt of the elipse, as #ClutterFixed, around the
|
||||||
* center in Y axis, or NULL.
|
* center in Y axis in degress, or NULL.
|
||||||
* @angle_tilt_z: #ClutterAngle location for tilt of the elipse around the
|
* @angle_tilt_z: location for tilt of the elipse, as #ClutterFixed, around the
|
||||||
* center in Z axis, or NULL.
|
* center in Z axis in degrees, or NULL.
|
||||||
*
|
*
|
||||||
* Gets the tilt of the ellipse around the center in Y axis.
|
* Gets the tilt of the ellipse around the center in Y axis.
|
||||||
*
|
*
|
||||||
@ -1215,9 +1214,9 @@ clutter_behaviour_ellipse_get_tilt (ClutterBehaviourEllipse *self,
|
|||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
clutter_behaviour_ellipse_get_tiltx (ClutterBehaviourEllipse *self,
|
clutter_behaviour_ellipse_get_tiltx (ClutterBehaviourEllipse *self,
|
||||||
ClutterAngle *angle_tilt_x,
|
ClutterFixed *angle_tilt_x,
|
||||||
ClutterAngle *angle_tilt_y,
|
ClutterFixed *angle_tilt_y,
|
||||||
ClutterAngle *angle_tilt_z)
|
ClutterFixed *angle_tilt_z)
|
||||||
{
|
{
|
||||||
ClutterBehaviourEllipsePrivate *priv;
|
ClutterBehaviourEllipsePrivate *priv;
|
||||||
|
|
||||||
@ -1226,13 +1225,13 @@ clutter_behaviour_ellipse_get_tiltx (ClutterBehaviourEllipse *self,
|
|||||||
priv = self->priv;
|
priv = self->priv;
|
||||||
|
|
||||||
if (angle_tilt_x)
|
if (angle_tilt_x)
|
||||||
*angle_tilt_x = priv->angle_tilt_x + 256;
|
*angle_tilt_x = CLUTTER_ANGLE_TO_DEGX (priv->angle_tilt_x + 256);
|
||||||
|
|
||||||
if (angle_tilt_y)
|
if (angle_tilt_y)
|
||||||
*angle_tilt_y = priv->angle_tilt_y + 256;
|
*angle_tilt_y = CLUTTER_ANGLE_TO_DEGX (priv->angle_tilt_y + 256);
|
||||||
|
|
||||||
if (angle_tilt_z)
|
if (angle_tilt_z)
|
||||||
*angle_tilt_z = priv->angle_tilt_z + 256;
|
*angle_tilt_z = CLUTTER_ANGLE_TO_DEGX (priv->angle_tilt_z + 256);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -134,31 +134,31 @@ void clutter_behaviour_ellipse_set_angle_start (ClutterBeha
|
|||||||
gdouble angle_start);
|
gdouble angle_start);
|
||||||
|
|
||||||
void clutter_behaviour_ellipse_set_angle_startx (ClutterBehaviourEllipse *self,
|
void clutter_behaviour_ellipse_set_angle_startx (ClutterBehaviourEllipse *self,
|
||||||
ClutterAngle angle_start);
|
ClutterFixed angle_start);
|
||||||
|
|
||||||
ClutterAngle clutter_behaviour_ellipse_get_angle_startx (ClutterBehaviourEllipse *self);
|
ClutterFixed clutter_behaviour_ellipse_get_angle_startx (ClutterBehaviourEllipse *self);
|
||||||
|
|
||||||
gdouble clutter_behaviour_ellipse_get_angle_start (ClutterBehaviourEllipse *self);
|
gdouble clutter_behaviour_ellipse_get_angle_start (ClutterBehaviourEllipse *self);
|
||||||
|
|
||||||
void clutter_behaviour_ellipse_set_angle_endx (ClutterBehaviourEllipse *self,
|
void clutter_behaviour_ellipse_set_angle_endx (ClutterBehaviourEllipse *self,
|
||||||
ClutterAngle angle_end);
|
ClutterFixed angle_end);
|
||||||
|
|
||||||
void clutter_behaviour_ellipse_set_angle_end (ClutterBehaviourEllipse *self,
|
void clutter_behaviour_ellipse_set_angle_end (ClutterBehaviourEllipse *self,
|
||||||
gdouble angle_end);
|
gdouble angle_end);
|
||||||
|
|
||||||
ClutterAngle clutter_behaviour_ellipse_get_angle_endx (ClutterBehaviourEllipse *self);
|
ClutterFixed clutter_behaviour_ellipse_get_angle_endx (ClutterBehaviourEllipse *self);
|
||||||
|
|
||||||
gdouble clutter_behaviour_ellipse_get_angle_end (ClutterBehaviourEllipse *self);
|
gdouble clutter_behaviour_ellipse_get_angle_end (ClutterBehaviourEllipse *self);
|
||||||
|
|
||||||
void clutter_behaviour_ellipse_set_angle_tiltx (ClutterBehaviourEllipse *self,
|
void clutter_behaviour_ellipse_set_angle_tiltx (ClutterBehaviourEllipse *self,
|
||||||
ClutterRotateAxis axis,
|
ClutterRotateAxis axis,
|
||||||
ClutterAngle angle_tilt);
|
ClutterFixed angle_tilt);
|
||||||
|
|
||||||
void clutter_behaviour_ellipse_set_angle_tilt (ClutterBehaviourEllipse *self,
|
void clutter_behaviour_ellipse_set_angle_tilt (ClutterBehaviourEllipse *self,
|
||||||
ClutterRotateAxis axis,
|
ClutterRotateAxis axis,
|
||||||
gdouble angle_tilt);
|
gdouble angle_tilt);
|
||||||
|
|
||||||
ClutterAngle clutter_behaviour_ellipse_get_angle_tiltx (ClutterBehaviourEllipse *self,
|
ClutterFixed clutter_behaviour_ellipse_get_angle_tiltx (ClutterBehaviourEllipse *self,
|
||||||
ClutterRotateAxis axis);
|
ClutterRotateAxis axis);
|
||||||
|
|
||||||
gdouble clutter_behaviour_ellipse_get_angle_tilt (ClutterBehaviourEllipse *self,
|
gdouble clutter_behaviour_ellipse_get_angle_tilt (ClutterBehaviourEllipse *self,
|
||||||
@ -170,9 +170,9 @@ void clutter_behaviour_ellipse_set_tilt (ClutterBeha
|
|||||||
gdouble angle_tilt_z);
|
gdouble angle_tilt_z);
|
||||||
|
|
||||||
void clutter_behaviour_ellipse_set_tiltx (ClutterBehaviourEllipse *self,
|
void clutter_behaviour_ellipse_set_tiltx (ClutterBehaviourEllipse *self,
|
||||||
ClutterAngle angle_tilt_x,
|
ClutterFixed angle_tilt_x,
|
||||||
ClutterAngle angle_tilt_y,
|
ClutterFixed angle_tilt_y,
|
||||||
ClutterAngle angle_tilt_z);
|
ClutterFixed angle_tilt_z);
|
||||||
|
|
||||||
void clutter_behaviour_ellipse_get_tilt (ClutterBehaviourEllipse *self,
|
void clutter_behaviour_ellipse_get_tilt (ClutterBehaviourEllipse *self,
|
||||||
gdouble *angle_tilt_x,
|
gdouble *angle_tilt_x,
|
||||||
@ -180,9 +180,9 @@ void clutter_behaviour_ellipse_get_tilt (ClutterBeha
|
|||||||
gdouble *angle_tilt_z);
|
gdouble *angle_tilt_z);
|
||||||
|
|
||||||
void clutter_behaviour_ellipse_get_tiltx (ClutterBehaviourEllipse *self,
|
void clutter_behaviour_ellipse_get_tiltx (ClutterBehaviourEllipse *self,
|
||||||
ClutterAngle *angle_tilt_x,
|
ClutterFixed *angle_tilt_x,
|
||||||
ClutterAngle *angle_tilt_y,
|
ClutterFixed *angle_tilt_y,
|
||||||
ClutterAngle *angle_tilt_z);
|
ClutterFixed *angle_tilt_z);
|
||||||
|
|
||||||
ClutterRotateDirection clutter_behaviour_ellipse_get_direction (ClutterBehaviourEllipse *self);
|
ClutterRotateDirection clutter_behaviour_ellipse_get_direction (ClutterBehaviourEllipse *self);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user