summaryrefslogtreecommitdiff
path: root/src/gui/rect.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/rect.h')
-rw-r--r--src/gui/rect.h17
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()
{ }