From 93c4dc6893e733f563e70c315537922d55adfab2 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Thu, 14 Mar 2024 02:00:21 +0100 Subject: Refactor code and start adding shine animation --- src/button.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/button.h') diff --git a/src/button.h b/src/button.h index 923321e..5492599 100644 --- a/src/button.h +++ b/src/button.h @@ -5,6 +5,7 @@ #include #include +#include "draw.h" #include "animate.h" // For pointers only @@ -14,10 +15,6 @@ typedef struct Button Button; typedef void (* ButtonAction)(Button *btn); -typedef struct { - double r, g, b, a; -} Color; - struct Button { bool simple; int padding; @@ -62,6 +59,8 @@ void button_set_padding(Button *btn, int padding); bool button_set_animation(Button *btn, Animation *anim); +void button_start_animation(Button *btn); + void button_destroy(Button *btn); #endif -- cgit v1.2.3