diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/saffron_api.h | 4 | ||||
| -rw-r--r-- | include/saffron_widget.h | 1 |
2 files changed, 5 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 diff --git a/include/saffron_widget.h b/include/saffron_widget.h index 5c0005c..8b9fc3c 100644 --- a/include/saffron_widget.h +++ b/include/saffron_widget.h @@ -12,6 +12,7 @@ typedef enum { typedef enum { SAFFRON_WIDGET_UNKNOWN, SAFFRON_WIDGET_BOX, + SAFFRON_WIDGET_BUTTON, SAFFRON_WIDGET_TEXT } SaffronWidgetType; |
