+wxRect& wxRect::operator+=(const wxRect& rect)
+{
+ *this = *this + rect;
+ return *this;
+}
+
+
+wxRect& wxRect::operator*=(const wxRect& rect)
+{
+ *this = *this * rect;
+ return *this;
+}
+
+
+wxRect operator+(const wxRect& r1, const wxRect& r2)
+{
+ int x1 = wxMin(r1.x, r2.x);
+ int y1 = wxMin(r1.y, r2.y);
+ int y2 = wxMax(r1.y+r1.height, r2.height+r2.y);
+ int x2 = wxMax(r1.x+r1.width, r2.width+r2.x);
+ return wxRect(x1, y1, x2-x1, y2-y1);
+}
+
+wxRect operator*(const wxRect& r1, const wxRect& r2)
+{
+ int x1 = wxMax(r1.x, r2.x);
+ int y1 = wxMax(r1.y, r2.y);
+ int y2 = wxMin(r1.y+r1.height, r2.height+r2.y);
+ int x2 = wxMin(r1.x+r1.width, r2.width+r2.x);
+ return wxRect(x1, y1, x2-x1, y2-y1);
+}
+