summaryrefslogtreecommitdiff
path: root/src/main/engine/ui/ui.h
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2025-05-19 15:53:03 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2025-05-19 15:53:03 +0200
commitbc803cb0a6d7095a45eec4413c55dd113c0eb659 (patch)
treebea48e6f9c0bbbe5fd97d31e54143327b85801c1 /src/main/engine/ui/ui.h
parenta20d8950d88bf89b2f9b8b02695fc464b2a13d01 (diff)
downloadtris-bc803cb0a6d7095a45eec4413c55dd113c0eb659.tar.gz
tris-bc803cb0a6d7095a45eec4413c55dd113c0eb659.zip
Add the UI type
Diffstat (limited to 'src/main/engine/ui/ui.h')
-rw-r--r--src/main/engine/ui/ui.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/engine/ui/ui.h b/src/main/engine/ui/ui.h
index 2335a4b..2cb8d32 100644
--- a/src/main/engine/ui/ui.h
+++ b/src/main/engine/ui/ui.h
@@ -20,7 +20,12 @@
#ifndef __UI_H__
#define __UI_H__
-void ui_init(int w, int h);
+typedef struct UI {
+ int width;
+ int height;
+} UI;
+
+UI *ui_init(int w, int h);
void ui_loop(void);
void ui_set_title(const char *title);
void ui_set_expose_listener(void (*expose_event)());