mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 02:20:43 -05:00
59bd20a94b
Instead of having the easing functions be dependent of ClutterAlpha, and static to the clutter-alpha.c source file, we should make them generic and move them to their own internal header and source files. This will allow to re-use them in the near future.
116 lines
4.0 KiB
C
116 lines
4.0 KiB
C
#ifndef __CLUTTER_EASING_H__
|
|
#define __CLUTTER_EASING_H__
|
|
|
|
#include <clutter/clutter-types.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
/*< private >
|
|
* ClutterEasingFunc:
|
|
* @t: elapsed time
|
|
* @d: total duration
|
|
*
|
|
* Internal type for the easing functions used by Clutter.
|
|
*
|
|
* Return value: the interpolated value, between -1.0 and 2.0
|
|
*/
|
|
typedef double (* ClutterEasingFunc) (double t, double d);
|
|
|
|
G_GNUC_INTERNAL
|
|
double clutter_linear (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_in_quad (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_out_quad (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_in_out_quad (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_in_cubic (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_out_cubic (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_in_out_cubic (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_in_quart (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_out_quart (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_in_out_quart (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_in_quint (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_out_quint (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_in_out_quint (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_in_sine (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_out_sine (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_in_out_sine (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_in_expo (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_out_expo (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_in_out_expo (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_in_circ (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_out_circ (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_in_out_circ (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_in_elastic (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_out_elastic (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_in_out_elastic (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_in_back (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_out_back (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_in_out_back (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_in_bounce (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_out_bounce (double t,
|
|
double d);
|
|
G_GNUC_INTERNAL
|
|
double clutter_ease_in_out_bounce (double t,
|
|
double d);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __CLUTTER_EASING_H__ */
|