diff options
| author | nathan <nathansmith@disroot.org> | 2025-11-17 09:23:10 +0000 |
|---|---|---|
| committer | nathan <nathansmith@disroot.org> | 2025-11-17 09:23:10 +0000 |
| commit | 04655283852b1b332ae9f8610aca20a553b3791f (patch) | |
| tree | c329b9fc3c2a8c1b647cb3148f316515c9135e5e /src/ui.h | |
| parent | bbfc3fffc0e5f28681ebfb9fc0fd47777fded191 (diff) | |
| download | FindThings-04655283852b1b332ae9f8610aca20a553b3791f.tar.gz FindThings-04655283852b1b332ae9f8610aca20a553b3791f.tar.bz2 FindThings-04655283852b1b332ae9f8610aca20a553b3791f.zip | |
Better window focus
Diffstat (limited to 'src/ui.h')
| -rw-r--r-- | src/ui.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -41,14 +41,18 @@ struct FloatingWindow { typedef struct { FloatingWindow windows[UI_WINDOW_MAX]; int windowCount; + bool enabled; } WindowManager; FloatingWindow createFloatingWindow(const char* title, Rectangle rect); -FocusCommand updateFloatingWindow(FloatingWindow* window, Game* game); +FocusCommand updateFloatingWindow(FloatingWindow* window, WindowManager* wm, + Game* game); void initWindowManager(WindowManager* wm); void updateWindowManager(WindowManager* wm, Game* game); void addWindowToWindowManager(WindowManager* wm, FloatingWindow window); void focusOnWindow(WindowManager* wm, int windowIndex); +void enableWindowManager(WindowManager* wm); +void disableWindowManager(WindowManager* wm); #endif |
