aboutsummaryrefslogtreecommitdiff
path: root/core/src/Model/Workflow/Value.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2021-05-12 13:23:56 -0700
committerrtk0c <[email protected]>2021-05-12 13:34:43 -0700
commit765df313e065f8401319c68ba70cd41b0bc34c9d (patch)
tree44e0c781ed9f5ea0f98ac906e96c677d04befa27 /core/src/Model/Workflow/Value.hpp
parent6ec8cc216282396ece535941ea6ca4a63d924e8f (diff)
Start to work on actually rendering the node graph
Diffstat (limited to 'core/src/Model/Workflow/Value.hpp')
-rw-r--r--core/src/Model/Workflow/Value.hpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/core/src/Model/Workflow/Value.hpp b/core/src/Model/Workflow/Value.hpp
index 6cd42f3..8b3e63a 100644
--- a/core/src/Model/Workflow/Value.hpp
+++ b/core/src/Model/Workflow/Value.hpp
@@ -1,5 +1,8 @@
#pragma once
+#include "cplt_fwd.hpp"
+#include "Utils/Color.hpp"
+
#include <iosfwd>
#include <memory>
@@ -17,11 +20,18 @@ public:
KindCount = InvalidKind,
};
+ struct KindInfo
+ {
+ ImGui::IconType PinIcon;
+ RgbaColor PinColor;
+ };
+
private:
Kind mKind;
public:
- static const char* FormatKind(Kind kind);
+ static const KindInfo& QueryInfo(Kind kind);
+ static const char* Format(Kind kind);
static std::unique_ptr<BaseValue> CreateByKind(Kind kind);
BaseValue(Kind kind);