diff options
| author | Arslaan Pathan <[email protected]> | 2026-04-30 23:24:58 +1200 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-04-30 23:24:58 +1200 |
| commit | 652c89c996f1447e64ccc61ceeaab3a80e7b404d (patch) | |
| tree | a945461e287c66fd8dba0500bc06d0379d78907e /include/saffron_api.h | |
| parent | 2cc161aabfe5c1343ca504b79a6a1c7706048a91 (diff) | |
| download | saffron-652c89c996f1447e64ccc61ceeaab3a80e7b404d.tar.xz saffron-652c89c996f1447e64ccc61ceeaab3a80e7b404d.zip | |
Add theming!
its 10:24pm and im sleepy
Diffstat (limited to 'include/saffron_api.h')
| -rw-r--r-- | include/saffron_api.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/saffron_api.h b/include/saffron_api.h index d64b480..8ad340c 100644 --- a/include/saffron_api.h +++ b/include/saffron_api.h @@ -28,10 +28,12 @@ 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, TTF_Font* font, SDL_Color color); +SaffronText* saffron_text_new(const char* text, TTF_Font* font); 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); +void saffron_widget_set_theme(SaffronWidget* widget, SaffronTheme* theme); + #endif |
