summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2025-05-22 15:40:06 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2025-05-22 15:40:06 +0200
commita7c1c3a6a7ef066de0f1179e83533d1e79a7db45 (patch)
tree08a8b02c2933d3291cecc873a1aae2c6f9c6320d
parent89527a169b9ea38ca270d69c6ebe9ce383289f48 (diff)
downloadtris-a7c1c3a6a7ef066de0f1179e83533d1e79a7db45.tar.gz
tris-a7c1c3a6a7ef066de0f1179e83533d1e79a7db45.zip
Move UI struct in ui.h
-rw-r--r--src/main/engine/ui/types.h5
-rw-r--r--src/main/engine/ui/ui.h5
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);