aboutsummaryrefslogtreecommitdiff
path: root/include/saffron_api.h
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-04-26 10:52:34 +1200
committerArslaan Pathan <[email protected]>2026-04-26 10:52:34 +1200
commit4fbf7e5b7b5325828099456c347183ba92864862 (patch)
treefef509e9f5ecc64cc9070b7a5820318908dbc156 /include/saffron_api.h
parenta2252b2952e4027b7edb420dccbd8494ae822b0f (diff)
downloadsaffron-4fbf7e5b7b5325828099456c347183ba92864862.tar.xz
saffron-4fbf7e5b7b5325828099456c347183ba92864862.zip
[feat] add some stuff??
Diffstat (limited to 'include/saffron_api.h')
-rw-r--r--include/saffron_api.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/saffron_api.h b/include/saffron_api.h
index 64251e0..4ab4731 100644
--- a/include/saffron_api.h
+++ b/include/saffron_api.h
@@ -4,6 +4,10 @@
#include "saffron_widget.h" /* satisfy the lsp and also if someone includes api without the saffron.h wrapper (you lunatic) then it still works */
#include "saffron_window.h"
#include "saffron_layout.h"
+#include "saffron_text.h"
+#include <SDL3/SDL_render.h>
+#include <SDL3_ttf/SDL_ttf.h>
+#include <SDL3/SDL_pixels.h>
bool saffron_init(void);
void saffron_quit(void);
@@ -23,4 +27,7 @@ SaffronWidget* saffron_widget_hit_test(SaffronWidget* widget, int x, int y);
SaffronBox* saffron_box_new(SaffronOrientation orientation, SaffronHorizontalAlignment halign, SaffronVerticalAlignment valign, int spacing, int padding, int margin, int width, int height);
void saffron_box_layout(SaffronBox* box);
+SaffronText* saffron_text_new(const char* text, int font_size, SDL_Color color);
+void saffron_text_set_text(SaffronText* text, const char* new_text);
+
#endif