From bc803cb0a6d7095a45eec4413c55dd113c0eb659 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Mon, 19 May 2025 15:53:03 +0200 Subject: Add the UI type --- src/main/engine/ui/ui.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/main/engine/ui/ui.h') 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)()); -- cgit v1.2.3