aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.h
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-11-06 06:11:56 +0000
committernathan <nathansmith@disroot.org>2025-11-06 06:11:56 +0000
commit485584966a5592eec6fd8b3b815cb23f26984733 (patch)
treef122a611a7693df1a514cb3169e1e8cdb9439d11 /src/ui.h
parent754fc059c3a6b3a1bc204f87d58152dbb65b2abe (diff)
downloadFindThings-485584966a5592eec6fd8b3b815cb23f26984733.tar.gz
FindThings-485584966a5592eec6fd8b3b815cb23f26984733.tar.bz2
FindThings-485584966a5592eec6fd8b3b815cb23f26984733.zip
Window thingy hehehehe
Diffstat (limited to 'src/ui.h')
-rw-r--r--src/ui.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/ui.h b/src/ui.h
new file mode 100644
index 0000000..80c669f
--- /dev/null
+++ b/src/ui.h
@@ -0,0 +1,19 @@
+#include "utils.h"
+
+#ifndef UI_H
+#define UI_H
+
+typedef struct {
+ Rectangle rect;
+ bool minimized;
+ bool moving;
+ bool resizing;
+ DrawWindowContentCallback callback;
+ Vector2 contentSize;
+ Vector2 scroll;
+} FloatingWindow;
+
+FloatingWindow createFloatingWindow();
+void updateFloatingWindow(FloatingWindow* window, const char* title);
+
+#endif