aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/component.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-06-23 17:05:43 +0200
committerHampusM <hampus@hampusmat.com>2022-06-23 18:24:48 +0200
commita570e494bca43c30d7ec91d293051c0c818509b5 (patch)
tree4eea8c16d1434893ca51b721c5498ece65c836aa /src/interfaces/component.hpp
parentec5c7cbccc533bacab661e991e7011584d3bb47f (diff)
feat: add statusline mode styling
Diffstat (limited to 'src/interfaces/component.hpp')
-rw-r--r--src/interfaces/component.hpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/interfaces/component.hpp b/src/interfaces/component.hpp
index 7e1b132..2f62c95 100644
--- a/src/interfaces/component.hpp
+++ b/src/interfaces/component.hpp
@@ -2,13 +2,23 @@
#include "interfaces/matrix.hpp"
+#include "engine/data/style.hpp"
+
#include <memory>
+#include <optional>
+
+class ComponentElement
+{
+public:
+ char value{};
+ Style style{};
+};
// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions)
class IComponent
{
public:
- using ComponentMatrix = IMatrix<char>;
+ using ComponentMatrix = IMatrix<ComponentElement>;
virtual ~IComponent() = default;