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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user