aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/cursor.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-08 17:00:18 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:55 +0200
commite0eaff89b5f3f289bf5d560ea64b969c90d32d18 (patch)
treea6e91afcf89abc91629f2bee545ccadacf9bb673 /src/interfaces/cursor.hpp
parent3359b00178357cb68d14e807c6deef3182532307 (diff)
refactor: add cursor controller interface
Diffstat (limited to 'src/interfaces/cursor.hpp')
-rw-r--r--src/interfaces/cursor.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/interfaces/cursor.hpp b/src/interfaces/cursor.hpp
new file mode 100644
index 0000000..adab524
--- /dev/null
+++ b/src/interfaces/cursor.hpp
@@ -0,0 +1,17 @@
+#pragma once
+
+#include "engine/data/vector2.hpp"
+
+class ICursorController
+{
+public:
+ virtual void move(const Vector2 &direction, const uint32_t &amount) noexcept = 0;
+
+ virtual void move_to(const Vector2 &position) noexcept = 0;
+
+ [[nodiscard]] virtual Vector2 where() const noexcept = 0;
+
+ static void hide();
+
+ static void show();
+};