diff options
Diffstat (limited to 'src/button.h')
| -rw-r--r-- | src/button.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/button.h b/src/button.h index 1d736e6..7def0b3 100644 --- a/src/button.h +++ b/src/button.h @@ -10,14 +10,23 @@ typedef struct Button Button; typedef void (* ButtonAction)(Button *btn); +typedef struct { + double r, g, b, a; +} Color; + struct Button { ButtonAction action; char *text; PangoAlignment align; + Color background; + Color foreground; + Color stroke; }; Button *button_create(const char *text, PangoAlignment align); +void button_set_colors(Button *btn, Color background, Color foreground, Color stroke); + void button_set_action(Button *btn, ButtonAction action); void button_destroy(Button *btn); |
