aboutsummaryrefslogtreecommitdiff
path: root/src/engine/graphics/bounds.hpp
blob: 3f4dd5bb6f0846fe4112953a47dd6ea90782c731 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once

#include "interfaces/bounds.hpp"
#include "interfaces/vector2.hpp"

class Bounds : public IBounds
{
public:
	explicit Bounds(const IBoundsOptions &options);

	[[nodiscard]] unsigned int width() const override;

	void width(unsigned int width) override;

	[[nodiscard]] unsigned int height() const override;

	void height(unsigned int height) override;

	[[nodiscard]] CoordsValidation validate_coords(const IVector2 &coords) const override;

	const IBounds &operator*=(const IBounds &bounds) override;
	const IBounds &operator+=(const IBounds &bounds) override;
	const IBounds &operator-=(const IBounds &bounds) override;

private:
	unsigned int _width = 0U;
	unsigned int _height = 0U;
};