diff options
| author | Federico Angelilli <code@fedang.net> | 2024-03-14 02:00:21 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-03-14 02:00:21 +0100 |
| commit | 93c4dc6893e733f563e70c315537922d55adfab2 (patch) | |
| tree | 245e84a64fed1dd56cc9e91b4fa415384caf9322 /src/button.h | |
| parent | 398fdbaa5c02bbd138c59004053d2e8ad0082ead (diff) | |
Refactor code and start adding shine animation
Diffstat (limited to 'src/button.h')
| -rw-r--r-- | src/button.h | 7 |
1 files changed, 3 insertions, 4 deletions
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 <glib.h> #include <pango/pangocairo.h> +#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 |
