From a285df324deb579d262ea7cf484de4d6b11b28e4 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 6 Mar 2022 13:26:14 +0100 Subject: refactor: improve getters & setters for vector2 & bounds --- src/engine/data/bounds.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/engine/data/bounds.hpp') 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; -- cgit v1.2.3-18-g5258