From 398fdbaa5c02bbd138c59004053d2e8ad0082ead Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Thu, 14 Mar 2024 00:58:05 +0100 Subject: Add animation scaffolding --- src/button.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/button.h') diff --git a/src/button.h b/src/button.h index 0fb821c..923321e 100644 --- a/src/button.h +++ b/src/button.h @@ -5,6 +5,8 @@ #include #include +#include "animate.h" + // For pointers only #define CAST(ptr, type) ((type *)ptr) @@ -22,6 +24,7 @@ struct Button { PangoAlignment align; Color color; Color line_color; + Animation *anim; }; typedef struct { @@ -57,6 +60,8 @@ void button_group_append(Button *btn, Button *child); void button_set_padding(Button *btn, int padding); +bool button_set_animation(Button *btn, Animation *anim); + void button_destroy(Button *btn); #endif -- cgit v1.2.3