aboutsummaryrefslogtreecommitdiff
path: root/include/saffron_window.h
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-05-01 21:38:49 +1200
committerArslaan Pathan <[email protected]>2026-05-01 21:38:49 +1200
commit6ad244502d1c3c09a26012c5e7fad901c95cc38e (patch)
treeb0b8106fca78a49e47313f35d8245eeb6980d3ac /include/saffron_window.h
parentccb8f9316c9bc7aded2dd5d74d2e82445bf2f647 (diff)
downloadsaffron-6ad244502d1c3c09a26012c5e7fad901c95cc38e.tar.xz
saffron-6ad244502d1c3c09a26012c5e7fad901c95cc38e.zip
Fix the buttons and implement hooks for future webkit bindings to build on top of
Diffstat (limited to 'include/saffron_window.h')
-rw-r--r--include/saffron_window.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/saffron_window.h b/include/saffron_window.h
index 80aaa39..89bf684 100644
--- a/include/saffron_window.h
+++ b/include/saffron_window.h
@@ -2,6 +2,7 @@
#define SAFFRON_WINDOW_H
#include <SDL3/SDL.h>
+#include "saffron_event_hooks.h"
#include "saffron_widget.h"
typedef struct {
@@ -10,6 +11,8 @@ typedef struct {
SDL_Renderer *renderer;
int w, h;
const char* title;
+ SfInternalEventHook hooks[32];
+ int hook_count;
} SaffronWindow;
#endif