#ifndef COMET_ANIMATE_H #define COMET_ANIMATE_H #include #include "draw.h" // TODO: Custom drawing for animations typedef void (* DrawFunc)(cairo_t *cr, const Layout *layout); typedef struct State State; typedef struct { enum { ANIM_SHINE, } type; GSourceFunc handler; DrawFunc paint; } Animation; double quadratic_bezier(double x, double a, double b, double c); double cubic_bezier(double x, double a, double b, double c, double d); Animation *animation_shine_create(State *state, gint64 duration); void animation_destroy(Animation *anim); #endif // vim: ts=4 sw=4 et