summaryrefslogtreecommitdiff
path: root/plugins/Skins/SkinLib/Size.h
blob: 8c0a297aee29e53020ef1119c9b95a36719b548d (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
#ifndef __SIZE_H__
# define __SIZE_H__


struct Size 
{
	int x;
	int y;

	Size();
	Size(int aX, int aY);

	/// @return 0 on success
	int resizeTo(int x, int y);

	/// @return 0 on success
	int fitInside(int maxSize);

	/// @return 0 on success
	int scaleTo(int size);

	bool operator==(const Size &other) const;
};



#endif // __SIZE_H__