diff options
| author | Federico Angelilli <code@fedang.net> | 2024-07-08 15:22:41 +0200 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-07-08 15:22:41 +0200 |
| commit | 5d170a634ead0119f6e5a9f63c23b2b064126f75 (patch) | |
| tree | 0447d2dbb0da6358d184a4c62d5557d4d22f5e8d /src/animate.h | |
| parent | 92feb3c130966202c7caa6d9bf3a3800c97ca7a1 (diff) | |
Remove old files
Diffstat (limited to 'src/animate.h')
| -rw-r--r-- | src/animate.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/src/animate.h b/src/animate.h deleted file mode 100644 index 79b6174..0000000 --- a/src/animate.h +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef COMET_ANIMATE_H -#define COMET_ANIMATE_H - -#include <glib.h> - -#include "draw.h" - -#define MILLIS(n) ((n) * G_TIME_SPAN_MILLISECOND) - -typedef struct Animation Animation; -typedef struct State State; - -typedef bool (* LayoutFunc)(Animation *anim, Layout *layout); -typedef bool (* DrawFunc)(Animation *anim, Layout *layout, cairo_t *cr); - -struct Animation { - enum { - ANIM_SHINE, - ANIM_PULSE, - ANIM_GROUP_SHRINK, - ANIM_GROUP_GROW, - } type; - gint64 start; - gint64 duration; - LayoutFunc layout_func; - // NOTE: These should not change the layout width - DrawFunc before_func; - DrawFunc after_func; -}; - -double clamp(double x, double min, double max); - -double smoothstep(double x, double edge0, double edge1); - -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(gint64 duration); - -Animation *animation_pulse_create(gint64 duration); - -Animation *animation_group_shrink_create(gint64 duration); - -Animation *animation_group_grow_create(gint64 duration); - -void animation_destroy(Animation *anim); - -#endif - -// vim: ts=4 sw=4 et |
