diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/rect.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gui/rect.h b/src/gui/rect.h index 34f333cfc..240d4ce44 100644 --- a/src/gui/rect.h +++ b/src/gui/rect.h @@ -91,6 +91,23 @@ class Rect notfinal */ Rect(const int x, const int y, const int width, const int height); + Rect(const Rect &r) : + x(r.x), + y(r.y), + width(r.width), + height(r.height) + { + } + + Rect &operator=(const Rect &r) + { + x = r.x; + y = r.y; + width = r.width; + height = r.height; + return *this; + } + virtual ~Rect() { } |