mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 03:22:04 +00:00
Changed behaviour so that a beginning angle of 0 would correspond to 12 o'clock
This commit is contained in:
parent
8697bfa53d
commit
7ada1c0ae0
@ -1,3 +1,9 @@
|
|||||||
|
2007-05-31 Tomas Frydrych <tf@openedhand.com>
|
||||||
|
|
||||||
|
* clutter/clutter-behaviour-ellipse.c:
|
||||||
|
Changed behaviour so that a beginning angle of 0 would correspond
|
||||||
|
to 12 o'clock.
|
||||||
|
|
||||||
2007-05-31 Tomas Frydrych <tf@openedhand.com>
|
2007-05-31 Tomas Frydrych <tf@openedhand.com>
|
||||||
|
|
||||||
* clutter/clutter-fixed.h:
|
* clutter/clutter-fixed.h:
|
||||||
|
@ -372,9 +372,9 @@ clutter_behaviour_ellipse_init (ClutterBehaviourEllipse * self)
|
|||||||
* center
|
* center
|
||||||
*
|
*
|
||||||
* Creates a behaviour that drives actors along an elliptical path with
|
* Creates a behaviour that drives actors along an elliptical path with
|
||||||
* given center, width and height; the movement begins at angle_begin and
|
* given center, width and height; the movement begins at angle_begin (with 0
|
||||||
* ends at angle_end; if angle_end > angle_begin, the movement is in
|
* corresponding to 12 o'clock) and ends at angle_end; if angle_end > angle_begin,
|
||||||
* counter-clockwise direction, clockwise other wise.
|
* the movement is in clockwise direction, counter-clockwise otherwise.
|
||||||
*
|
*
|
||||||
* Return value: a #ClutterBehaviour
|
* Return value: a #ClutterBehaviour
|
||||||
*
|
*
|
||||||
@ -403,8 +403,8 @@ clutter_behaviour_ellipse_new (ClutterAlpha * alpha,
|
|||||||
"center", ¢er,
|
"center", ¢er,
|
||||||
"width", width,
|
"width", width,
|
||||||
"height", height,
|
"height", height,
|
||||||
"angle-begin", CLUTTER_ANGLE_FROM_DEG (begin),
|
"angle-begin", CLUTTER_ANGLE_FROM_DEG (begin) - 256,
|
||||||
"angle-end", CLUTTER_ANGLE_FROM_DEG (end),
|
"angle-end", CLUTTER_ANGLE_FROM_DEG (end) - 256,
|
||||||
"angle-tilt", CLUTTER_ANGLE_FROM_DEG (tilt),
|
"angle-tilt", CLUTTER_ANGLE_FROM_DEG (tilt),
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
@ -420,13 +420,13 @@ clutter_behaviour_ellipse_new (ClutterAlpha * alpha,
|
|||||||
* @height: height of the ellipse
|
* @height: height of the ellipse
|
||||||
* @begin: #ClutterFixed angle in degrees at which movement begins
|
* @begin: #ClutterFixed angle in degrees at which movement begins
|
||||||
* @end: #ClutterFixed angle in degrees at which movement ends
|
* @end: #ClutterFixed angle in degrees at which movement ends
|
||||||
* @tilt: #ClutterFixed angle in degrees with which the ellipse should be tilted around its
|
* @tilt: #ClutterFixed angle in degrees with which the ellipse should be
|
||||||
* center
|
* tilted around its center
|
||||||
*
|
*
|
||||||
* Creates a behaviour that drives actors along an elliptical path with
|
* Creates a behaviour that drives actors along an elliptical path with
|
||||||
* given center, width and height; the movement begins at angle_begin and
|
* given center, width and height; the movement begins at angle_begin (with 0
|
||||||
* ends at angle_end; if angle_end > angle_begin, the movement is in
|
* corresponding to 12 o'clock) and ends at angle_end; if angle_end > angle_begin,
|
||||||
* counter-clockwise direction, clockwise other wise.
|
* the movement is in clockwise direction, counter-clockwise otherwise.
|
||||||
*
|
*
|
||||||
* Return value: a #ClutterBehaviour
|
* Return value: a #ClutterBehaviour
|
||||||
*
|
*
|
||||||
@ -455,8 +455,8 @@ clutter_behaviour_ellipse_newx (ClutterAlpha * alpha,
|
|||||||
"center", ¢er,
|
"center", ¢er,
|
||||||
"width", width,
|
"width", width,
|
||||||
"height", height,
|
"height", height,
|
||||||
"angle-begin", CLUTTER_ANGLE_FROM_DEGX (begin),
|
"angle-begin", CLUTTER_ANGLE_FROM_DEGX (begin) - 256,
|
||||||
"angle-end", CLUTTER_ANGLE_FROM_DEGX (end),
|
"angle-end", CLUTTER_ANGLE_FROM_DEGX (end) - 256,
|
||||||
"angle-tilt", CLUTTER_ANGLE_FROM_DEGX (tilt),
|
"angle-tilt", CLUTTER_ANGLE_FROM_DEGX (tilt),
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user