hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/ui/workspace.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/workspace.h')
-rw-r--r--src/ui/workspace.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/ui/workspace.h b/src/ui/workspace.h
new file mode 100644
index 0000000..7806f5c
--- /dev/null
+++ b/src/ui/workspace.h
@@ -0,0 +1,24 @@
+#pragma once
+
+#include "rendering/view.h"
+#include <string>
+
+namespace Donut
+{
+ class Scene;
+
+ struct UIContext
+ {
+ Scene& scene;
+ std::string device_name;
+ };
+
+ class Workspace
+ {
+ public:
+ virtual ~Workspace() = default;
+ virtual auto name() const -> const char* = 0;
+ virtual auto view() const -> View = 0;
+ virtual auto on_ui(const UIContext& ctx) -> void = 0;
+ };
+}