aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Rect2i.h
blob: cb9471a02e6b02f0a1c64820ef0908d29a7f6c06 (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
#pragma once

class Rect2i
{
private:
	int xPos;
	int yPos;
	int width;
	int height;

public:
	Rect2i(int x, int y, int width, int height);

	Rect2i *intersect(const Rect2i *other);
	int getX() const;
	int getY() const;
	void setX(int x);
	void setY(int y);
	int getWidth() const;
	int getHeight() const;
	void setWidth(int width);
	void setHeight(int height);
	void setPosition(int x, int y);
};