+ // comparison
+ bool operator==(const wxPoint& p) const { return x == p.x && y == p.y; }
+ bool operator!=(const wxPoint& p) const { return !(*this == p); }
+
+ // 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); }