aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.h
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-11-17 09:23:10 +0000
committernathan <nathansmith@disroot.org>2025-11-17 09:23:10 +0000
commit04655283852b1b332ae9f8610aca20a553b3791f (patch)
treec329b9fc3c2a8c1b647cb3148f316515c9135e5e /src/ui.h
parentbbfc3fffc0e5f28681ebfb9fc0fd47777fded191 (diff)
downloadFindThings-04655283852b1b332ae9f8610aca20a553b3791f.tar.gz
FindThings-04655283852b1b332ae9f8610aca20a553b3791f.tar.bz2
FindThings-04655283852b1b332ae9f8610aca20a553b3791f.zip
Better window focus
Diffstat (limited to 'src/ui.h')
-rw-r--r--src/ui.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui.h b/src/ui.h
index 95e250a..30853fb 100644
--- a/src/ui.h
+++ b/src/ui.h
@@ -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