diff options
| author | Arslaan Pathan <[email protected]> | 2026-04-26 10:52:34 +1200 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-04-26 10:52:34 +1200 |
| commit | 4fbf7e5b7b5325828099456c347183ba92864862 (patch) | |
| tree | fef509e9f5ecc64cc9070b7a5820318908dbc156 /include/saffron_button.h | |
| parent | a2252b2952e4027b7edb420dccbd8494ae822b0f (diff) | |
| download | saffron-4fbf7e5b7b5325828099456c347183ba92864862.tar.xz saffron-4fbf7e5b7b5325828099456c347183ba92864862.zip | |
[feat] add some stuff??
Diffstat (limited to 'include/saffron_button.h')
| -rw-r--r-- | include/saffron_button.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/saffron_button.h b/include/saffron_button.h index 3112edf..ab4ed97 100644 --- a/include/saffron_button.h +++ b/include/saffron_button.h @@ -1,11 +1,13 @@ #ifndef SAFFRON_BUTTON_H #define SAFFRON_BUTTON_H +#include "saffron_layout.h" #include "saffron_widget.h" -typedef struct { - SaffronWidget base; // must be first, or we're f**ked - const char* label; +typedef struct SaffronButton { + SaffronBox base; + void (*callback)(struct SaffronButton* self); + bool enabled; } SaffronButton; #endif |
