diff options
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 |
