aboutsummaryrefslogtreecommitdiff
path: root/include/saffron_widget.h
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-04-30 23:24:58 +1200
committerArslaan Pathan <[email protected]>2026-04-30 23:24:58 +1200
commit652c89c996f1447e64ccc61ceeaab3a80e7b404d (patch)
treea945461e287c66fd8dba0500bc06d0379d78907e /include/saffron_widget.h
parent2cc161aabfe5c1343ca504b79a6a1c7706048a91 (diff)
downloadsaffron-652c89c996f1447e64ccc61ceeaab3a80e7b404d.tar.xz
saffron-652c89c996f1447e64ccc61ceeaab3a80e7b404d.zip
Add theming!
its 10:24pm and im sleepy
Diffstat (limited to 'include/saffron_widget.h')
-rw-r--r--include/saffron_widget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/saffron_widget.h b/include/saffron_widget.h
index 8b9fc3c..8e7ad12 100644
--- a/include/saffron_widget.h
+++ b/include/saffron_widget.h
@@ -2,6 +2,7 @@
#define SAFFRON_WIDGET_H
#include <SDL3/SDL.h>
+#include "saffron_theme.h"
typedef enum {
SAFFRON_SIZE_FIXED, // keep normal size
@@ -28,6 +29,7 @@ typedef struct SaffronWidget {
bool pixel_perfect; // Do we scale dynamically (SaffronSizeMode, etc) or use raw x, y, w, h values? If this is true, the SaffronSizeModes from earlier will be ignored. this pretty much tells the engine NOT to layout your widgets, don't expect it to allocate size for it. get better
SaffronWidgetType type;
void (*free)(struct SaffronWidget* self);
+ SaffronTheme* theme;
} SaffronWidget;
#endif