aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.h
diff options
context:
space:
mode:
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