added unary wxPoint::operator-

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2006-09-09 15:52:05 +00:00
parent ee4c13659b
commit 24b800a957

View File

@ -307,6 +307,8 @@ public:
wxPoint operator+(const wxSize& s) const { return wxPoint(x + s.GetWidth(), y + s.GetHeight()); }
wxPoint operator-(const wxSize& s) const { return wxPoint(x - s.GetWidth(), y - s.GetHeight()); }
wxPoint operator-() const { return wxPoint(-x, -y); }
};
// ---------------------------------------------------------------------------