aboutsummaryrefslogtreecommitdiff
path: root/src/animate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/animate.h')
-rw-r--r--src/animate.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/animate.h b/src/animate.h
index a4ded33..b296723 100644
--- a/src/animate.h
+++ b/src/animate.h
@@ -8,18 +8,20 @@
typedef struct Animation Animation;
typedef struct State State;
-typedef bool (* DrawFunc)(Animation *anim, cairo_t *cr, const Layout *layout);
typedef bool (* LayoutFunc)(Animation *anim, Layout *layout);
+typedef bool (* DrawFunc)(Animation *anim, Layout *layout, cairo_t *cr);
struct Animation {
enum {
ANIM_SHINE,
ANIM_PULSE,
} type;
- DrawFunc paint_func;
- LayoutFunc layout_func;
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);