From 4fbf7e5b7b5325828099456c347183ba92864862 Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Sun, 26 Apr 2026 10:52:34 +1200 Subject: [feat] add some stuff?? --- include/saffron_button.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include/saffron_button.h') 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 -- cgit v1.2.3