hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/ui/ui_layer.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-08-23 21:55:36 +0200
committerhachem <im@hachem.wtf>2026-08-23 21:55:36 +0200
commit6ee03a2ea3c764f0364b2e61beb6812226facd4c (patch)
treeb5ada601ae22229d207fda3b91e7aed84b336e8b /src/ui/ui_layer.h
parent2959cfaf69d770955ab655379134e037590a6933 (diff)
feat: implement ui layer arch
Diffstat (limited to 'src/ui/ui_layer.h')
-rw-r--r--src/ui/ui_layer.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/ui/ui_layer.h b/src/ui/ui_layer.h
new file mode 100644
index 0000000..5032c05
--- /dev/null
+++ b/src/ui/ui_layer.h
@@ -0,0 +1,23 @@
+#pragma once
+
+#include "workspace.h"
+#include "rendering/view.h"
+#include "core/memory.h"
+
+#include <vector>
+
+namespace Donut
+{
+ class UILayer
+ {
+ public:
+ UILayer();
+ auto draw(const UIContext& ctx) -> View;
+
+ private:
+ std::vector<Scope<Workspace>> m_workspaces;
+ int m_active = 0;
+ int m_landing = 0;
+ bool m_landed = false;
+ };
+}