summaryrefslogtreecommitdiff
path: root/src/main/engine/ui/ui.h
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2025-05-22 16:04:17 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2025-05-22 16:12:53 +0200
commit39efa999f190e81f8aa63948165bc52faab00375 (patch)
tree3ca11c8fd11ab68f69c00db1f953824344aae7b5 /src/main/engine/ui/ui.h
parenta7c1c3a6a7ef066de0f1179e83533d1e79a7db45 (diff)
downloadtris-39efa999f190e81f8aa63948165bc52faab00375.tar.gz
tris-39efa999f190e81f8aa63948165bc52faab00375.zip
Refactoring to make UI multi-instance
Diffstat (limited to 'src/main/engine/ui/ui.h')
-rw-r--r--src/main/engine/ui/ui.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/engine/ui/ui.h b/src/main/engine/ui/ui.h
index 34e21dd..e1c4283 100644
--- a/src/main/engine/ui/ui.h
+++ b/src/main/engine/ui/ui.h
@@ -25,11 +25,13 @@
typedef struct UI {
int width;
int height;
+ void *extra;
+ int close_window;
} UI;
UI *ui_new(int w, int h);
void ui_loop(UI *ui);
-void ui_set_title(const char *title);
+void ui_set_title(UI *ui, const char *title);
void ui_set_expose_listener(void (*expose_event)());
void ui_set_resize_listener(void (*resize_event)(UIEventResize *));
void ui_set_loop_listener(void (*event)());