1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Added new Widgets an functions for simplification

This commit is contained in:
Laserlicht
2023-09-17 20:34:31 +02:00
committed by GitHub
parent d33101187b
commit 05fad115b5
5 changed files with 57 additions and 0 deletions

View File

@@ -98,6 +98,11 @@ public:
return Point(w,h);
}
Rect resize(const int size) const
{
return Rect(x-size,y-size,w+size,h+size);
}
void moveTo(const Point & dest)
{
x = dest.x;