From 6ee03a2ea3c764f0364b2e61beb6812226facd4c Mon Sep 17 00:00:00 2001 From: hachem Date: Sun, 23 Aug 2026 21:55:36 +0200 Subject: feat: implement ui layer arch --- src/ui/ui_layer.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/ui/ui_layer.h (limited to 'src/ui/ui_layer.h') 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 + +namespace Donut +{ + class UILayer + { + public: + UILayer(); + auto draw(const UIContext& ctx) -> View; + + private: + std::vector> m_workspaces; + int m_active = 0; + int m_landing = 0; + bool m_landed = false; + }; +} -- cgit v1.3