From a7c1c3a6a7ef066de0f1179e83533d1e79a7db45 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Thu, 22 May 2025 15:40:06 +0200 Subject: Move UI struct in ui.h --- src/main/engine/ui/types.h | 5 ----- src/main/engine/ui/ui.h | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/engine/ui/types.h b/src/main/engine/ui/types.h index 0bf522a..33aeea9 100644 --- a/src/main/engine/ui/types.h +++ b/src/main/engine/ui/types.h @@ -20,11 +20,6 @@ #ifndef __TYPES_H__ #define __TYPES_H__ -typedef struct UI { - int width; - int height; -} UI; - typedef struct UIEventResize { int width; int height; diff --git a/src/main/engine/ui/ui.h b/src/main/engine/ui/ui.h index 9aee1b8..34e21dd 100644 --- a/src/main/engine/ui/ui.h +++ b/src/main/engine/ui/ui.h @@ -22,6 +22,11 @@ #include "types.h" +typedef struct UI { + int width; + int height; +} UI; + UI *ui_new(int w, int h); void ui_loop(UI *ui); void ui_set_title(const char *title); -- cgit v1.2.3