diff options
| author | Federico Angelilli <code@fedang.net> | 2024-03-14 00:58:05 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-03-14 00:58:05 +0100 |
| commit | 398fdbaa5c02bbd138c59004053d2e8ad0082ead (patch) | |
| tree | d846ed2d4e811ffeddde9dc77a5549fe38edbd34 /src/button.h | |
| parent | cbe94d7c42422856275ad41332cbc980054d6bee (diff) | |
Add animation scaffolding
Diffstat (limited to 'src/button.h')
| -rw-r--r-- | src/button.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <glib.h> #include <pango/pangocairo.h> +#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 |
