aboutsummaryrefslogtreecommitdiff
path: root/include/saffron_api.h
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-04-30 13:06:18 +1200
committerArslaan Pathan <[email protected]>2026-04-30 13:06:18 +1200
commit2cc161aabfe5c1343ca504b79a6a1c7706048a91 (patch)
treea5afba4165244b40f61f06d1919334b2dcbab217 /include/saffron_api.h
parent6bd14230b3ed93e7eeab55d957db685c63a65069 (diff)
downloadsaffron-2cc161aabfe5c1343ca504b79a6a1c7706048a91.tar.xz
saffron-2cc161aabfe5c1343ca504b79a6a1c7706048a91.zip
Start work on button implementation(s)
Diffstat (limited to 'include/saffron_api.h')
-rw-r--r--include/saffron_api.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/saffron_api.h b/include/saffron_api.h
index 0518dcb..d64b480 100644
--- a/include/saffron_api.h
+++ b/include/saffron_api.h
@@ -5,6 +5,7 @@
#include "saffron_window.h"
#include "saffron_layout.h"
#include "saffron_text.h"
+#include "saffron_button.h"
#include <SDL3/SDL_render.h>
#include <SDL3_ttf/SDL_ttf.h>
#include <SDL3/SDL_pixels.h>
@@ -30,4 +31,7 @@ void saffron_box_layout(SaffronBox* box);
SaffronText* saffron_text_new(const char* text, TTF_Font* font, SDL_Color color);
void saffron_text_set_text(SaffronText* text, const char* new_text);
+SaffronButton* saffron_button_new(bool enabled, void (*callback)(SaffronButton* self), int w, int h);
+SaffronButton* saffron_button_new_with_text(SaffronText* text, bool enabled, void (*callback)(SaffronButton* self), int w, int h);
+
#endif