aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.h
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-11-06 11:30:38 +0000
committernathan <nathansmith@disroot.org>2025-11-06 11:30:38 +0000
commit1fe9fa841c9f485b4404716cf4fb834f6a98fcc9 (patch)
tree1a505a7549af5e17c3b077b5a8bbe2e98fc33889 /src/ui.h
parent6fea2be59237f6d43c45dbda95f62346779b21e6 (diff)
downloadFindThings-1fe9fa841c9f485b4404716cf4fb834f6a98fcc9.tar.gz
FindThings-1fe9fa841c9f485b4404716cf4fb834f6a98fcc9.tar.bz2
FindThings-1fe9fa841c9f485b4404716cf4fb834f6a98fcc9.zip
Working on window manager
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