From 24b800a95746b5a55af5a3a35898107e358bae67 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 9 Sep 2006 15:52:05 +0000 Subject: [PATCH] added unary wxPoint::operator- git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/gdicmn.h | 2 ++ 1 file changed, 2 insertions(+) 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); } }; // --------------------------------------------------------------------------- -- 2.45.2