Applied patch [ 871014 ] Adding size of control to its position

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2004-01-08 15:05:38 +00:00
parent 28764ac9d1
commit d02bc4c8d4
2 changed files with 11 additions and 0 deletions

View File

@@ -87,6 +87,8 @@ All:
- Added some extra convenience functions to wxRect such as
GetBottomRight (Hajo Kirchhoff)
- Changed built-in regex library to a unicode-compatible one (Ryan Norton)
- Added extra convenience functions to wxPoint for adding a
wxSize (Wlodzimierz Skiba)
All (GUI):
@@ -119,6 +121,9 @@ wxMSW:
- fixed enumerating of entries/groups under '/' in wxRegConfig
- added wxSYS_ICONTITLE_FONT (Andreas Pflug)
- added wxPATH_NORM_SHORTCUT to wxFileName
- wxComboBox::GetValue within a wxEVT_COMMAND_TEXT_UPDATED event
should now pass the correct value even if the handler for
wxEVT_COMMAND_COMBOBOX_SELECTED changed the selection
wxGTK:

View File

@@ -273,6 +273,12 @@ public:
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; }
wxPoint& operator+=(const wxSize& s) { x += s.GetWidth(); y += s.GetHeight(); return *this; }
wxPoint& operator-=(const wxSize& s) { x -= s.GetWidth(); y -= s.GetHeight(); return *this; }
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()); }
};
// ---------------------------------------------------------------------------