aboutsummaryrefslogtreecommitdiff
path: root/src/game/components/statusline.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-06-27 22:08:43 +0200
committerHampusM <hampus@hampusmat.com>2022-06-27 22:08:43 +0200
commit6b0e2a25cf1e98d3f11d4e6c0305dd327048bbb8 (patch)
treea62c23f4e66949fe109e07dec95ad3a3e5229a7c /src/game/components/statusline.hpp
parent9d0fe1b42c9f6a5c09bab444966d347a71a4b905 (diff)
refactor: use int types from std namespace
Diffstat (limited to 'src/game/components/statusline.hpp')
-rw-r--r--src/game/components/statusline.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/game/components/statusline.hpp b/src/game/components/statusline.hpp
index e009174..4451fde 100644
--- a/src/game/components/statusline.hpp
+++ b/src/game/components/statusline.hpp
@@ -10,7 +10,7 @@
#include <string_view>
#include <unordered_map>
-constexpr uint32_t STATUSLINE_COLOR = 0x1A1A1AU;
+constexpr std::uint32_t STATUSLINE_COLOR = 0x1A1A1AU;
class StatusLine : public IStatusLine
{
@@ -23,23 +23,23 @@ public:
void set_need_render(bool need_render) noexcept override;
- auto get_foreground_color() const noexcept -> uint32_t override;
+ auto get_foreground_color() const noexcept -> std::uint32_t override;
- auto get_background_color() const noexcept -> uint32_t override;
+ auto get_background_color() const noexcept -> std::uint32_t override;
void set_section_status(
StatusLineSection section,
const std::string_view &status,
- int32_t start) noexcept override;
+ std::int32_t start) noexcept override;
- void set_section_length(StatusLineSection section, int32_t length) noexcept override;
+ void set_section_length(StatusLineSection section, std::int32_t length) noexcept override;
void
set_section_style(StatusLineSection section, const Style &style) noexcept override;
private:
std::shared_ptr<ComponentMatrix> _component_matrix;
- std::unordered_map<StatusLineSection, int32_t> _section_lengths;
+ std::unordered_map<StatusLineSection, std::int32_t> _section_lengths;
std::unordered_map<StatusLineSection, Style> _section_styles;
bool _need_render;
@@ -47,7 +47,7 @@ private:
_matrix_write_string(const Vector2 &position, const std::string_view &str) noexcept;
[[nodiscard]] auto _get_section_start_x(StatusLineSection section) const noexcept
- -> int32_t;
+ -> std::int32_t;
- void _clear_section(StatusLineSection section, int32_t start) noexcept;
+ void _clear_section(StatusLineSection section, std::int32_t start) noexcept;
};