aboutsummaryrefslogtreecommitdiff
path: root/src/engine/user/cursor.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-06-28 19:22:06 +0200
committerHampusM <hampus@hampusmat.com>2022-06-28 19:22:06 +0200
commitd2a76bd8cfd883070259bf572a9f723a37c0d96e (patch)
treecca72b471b0c3a562789a1ab966e4568edf7165a /src/engine/user/cursor.hpp
parentdaf39f75d764449f18cd480b6d3c645b8372b0a5 (diff)
refactor: improve includes with iwyu
Diffstat (limited to 'src/engine/user/cursor.hpp')
-rw-r--r--src/engine/user/cursor.hpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/engine/user/cursor.hpp b/src/engine/user/cursor.hpp
index 06c6b88..ff7e89f 100644
--- a/src/engine/user/cursor.hpp
+++ b/src/engine/user/cursor.hpp
@@ -2,16 +2,16 @@
#include "interfaces/cursor.hpp"
-#include "engine/data/bounds.hpp"
-#include "engine/data/vector2.hpp"
-
+#include <cstdint>
#include <fmt/core.h>
-#include <yacppdic/auto_wirable.hpp>
-
#include <memory>
#include <string_view>
#include <unordered_map>
#include <vector>
+#include <yacppdic/auto_wirable.hpp>
+
+#include "engine/data/bounds.hpp"
+#include "engine/data/vector2.hpp"
constexpr std::string_view MOVE_CURSOR_UP = "{esc}[{amount}A";
constexpr std::string_view MOVE_CURSOR_DOWN = "{esc}[{amount}B";
@@ -39,8 +39,10 @@ class CursorController : public ICursorController,
public:
CursorController() noexcept;
- void move(const Vector2 &direction, const std::uint32_t &amount, bool flush_cout) noexcept
- override;
+ void move(
+ const Vector2 &direction,
+ const std::uint32_t &amount,
+ bool flush_cout) noexcept override;
void move_to(const Vector2 &position, bool flush_cout) noexcept override;