aboutsummaryrefslogtreecommitdiff
path: root/src/engine/data/bounds.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-06 13:26:14 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:54 +0200
commita285df324deb579d262ea7cf484de4d6b11b28e4 (patch)
treee2d181d58a09826c318d7aab5bee66bad3cf484a /src/engine/data/bounds.hpp
parent0e40bc7ce8c3b3be083002f88c3317d65f6570ad (diff)
refactor: improve getters & setters for vector2 & bounds
Diffstat (limited to 'src/engine/data/bounds.hpp')
-rw-r--r--src/engine/data/bounds.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/data/bounds.hpp b/src/engine/data/bounds.hpp
index 1875bf4..b29005e 100644
--- a/src/engine/data/bounds.hpp
+++ b/src/engine/data/bounds.hpp
@@ -22,13 +22,13 @@ class Bounds
public:
explicit Bounds(const BoundsOptions &options);
- [[nodiscard]] uint32_t width() const noexcept;
+ [[nodiscard]] uint32_t get_width() const noexcept;
- void width(uint32_t width) noexcept;
+ void set_width(uint32_t width) noexcept;
- [[nodiscard]] uint32_t height() const noexcept;
+ [[nodiscard]] uint32_t get_height() const noexcept;
- void height(uint32_t height) noexcept;
+ void set_height(uint32_t height) noexcept;
[[nodiscard]] CoordsValidation validate_coords(const Vector2 &coords) const noexcept;