#include "wx/font.h"
#include "wx/palette.h"
#include "wx/app.h"
+#include "wx/dc.h"
+#include "wx/utils.h"
#include "wx/log.h"
#include <string.h>
(height == rect.height));
}
+const wxRect& wxRect::operator += (const wxRect& rect)
+{
+ *this = (*this + rect);
+ return ( *this ) ;
+}
+
+wxRect wxRect::operator + (const wxRect& rect) const
+{
+ int x1 = wxMin(this->x, rect.x);
+ int y1 = wxMin(this->y, rect.y);
+ int y2 = wxMax(y+height, rect.height+rect.y);
+ int x2 = wxMax(x+width, rect.width+rect.x);
+ return wxRect(x1, y1, x2-x1, y2-y1);
+}
+
+bool wxRect::Inside(int cx, int cy) const
+{
+ return ( (cx >= x) && (cy >= y)
+ && ((cy - y) < height)
+ && ((cx - x) < width)
+ );
+}
+
wxColourDatabase::wxColourDatabase (int type) : wxList (type)
{
}