aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.h')
-rw-r--r--src/ui.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/ui.h b/src/ui.h
index 5868b50..fcf17a0 100644
--- a/src/ui.h
+++ b/src/ui.h
@@ -11,9 +11,13 @@
#define RAYGUI_WINDOW_CLOSEBUTTON_SIZE 18
#endif
+#define UI_WINDOW_TITLE_MAX 32
+#define UI_WINDOW_MAX 4
+
typedef void (*DrawWindowContentCallback)(Vector2 position, Vector2 scroll);
typedef struct {
+ char title[UI_WINDOW_TITLE_MAX];
Rectangle rect;
bool minimized;
bool moving;
@@ -23,7 +27,15 @@ typedef struct {
Vector2 scroll;
} FloatingWindow;
-FloatingWindow createFloatingWindow();
-void updateFloatingWindow(FloatingWindow* window, const char* title);
+typedef struct {
+ FloatingWindow windows[UI_WINDOW_MAX];
+ int windowCount;
+} WindowManager;
+
+FloatingWindow createFloatingWindow(const char* title);
+void updateFloatingWindow(FloatingWindow* window);
+
+void initWindowManager(WindowManager* windowManager);
+void updateWindowManager(WindowManager* windowManager);
#endif