diff options
| author | nathan <nathansmith@disroot.org> | 2025-11-06 11:30:38 +0000 |
|---|---|---|
| committer | nathan <nathansmith@disroot.org> | 2025-11-06 11:30:38 +0000 |
| commit | 1fe9fa841c9f485b4404716cf4fb834f6a98fcc9 (patch) | |
| tree | 1a505a7549af5e17c3b077b5a8bbe2e98fc33889 /src/ui.h | |
| parent | 6fea2be59237f6d43c45dbda95f62346779b21e6 (diff) | |
| download | FindThings-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.h | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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 |
