- wxPoint operator + (const wxPoint& pt) { return wxPoint(x + pt.x, y + pt.y); }
- wxPoint operator - (const wxPoint& pt) { return wxPoint(x - pt.x, y - pt.y); }
+ // arithmetic operations (component wise)
+ wxPoint operator+(const wxPoint& p) { return wxPoint(x + p.x, y + p.y); }
+ wxPoint operator-(const wxPoint& p) { return wxPoint(x - p.x, y - p.y); }
+
+ wxPoint& operator+=(const wxPoint& p) { x += p.x; y += p.y; return *this; }
+ wxPoint& operator-=(const wxPoint& p) { x -= p.x; y -= p.y; return *this; }