X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c23a0b01b3fb667ec41fc8271ce1ee5b5aa4e19..5ef9f903666c6d4be2b5120d8d531cb3b41fd8c1:/include/wx/stubs/region.h diff --git a/include/wx/stubs/region.h b/include/wx/stubs/region.h index 02bf97845f..04d143c2e9 100644 --- a/include/wx/stubs/region.h +++ b/include/wx/stubs/region.h @@ -18,6 +18,7 @@ #include "wx/list.h" #include "wx/gdiobj.h" +#include "wx/gdicmn.h" class WXDLLEXPORT wxRect; class WXDLLEXPORT wxPoint; @@ -42,11 +43,6 @@ public: wxRegion(long x, long y, long w, long h); wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight); wxRegion(const wxRect& rect); - -/* TODO: implementation - wxRegion(WXHRGN hRegion); // Hangs on to this region -*/ - wxRegion(); ~wxRegion(); @@ -128,6 +124,7 @@ public: long GetWidth() const { return GetW(); } long GetH() const; long GetHeight() const { return GetH(); } + wxRect GetRect() const { return wxRect(GetX(), GetY(), GetWidth(), GetHeight()); } private: long m_current;