From: Václav Slavík Date: Sat, 9 Sep 2006 15:52:05 +0000 (+0000) Subject: added unary wxPoint::operator- X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/24b800a95746b5a55af5a3a35898107e358bae67 added unary wxPoint::operator- git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/gdicmn.h b/include/wx/gdicmn.h index 07e68c9c21..1c02e3dfc9 100644 --- a/include/wx/gdicmn.h +++ b/include/wx/gdicmn.h @@ -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); } }; // ---------------------------------------------------------------------------