hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/ui/ui_layer.h
diff options
context:
space:
mode:
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;
+ };
+}