X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c23a0b01b3fb667ec41fc8271ce1ee5b5aa4e19..d42508c2a026d505d39c386b233de4a1b51f1445:/include/wx/stubs/region.h?ds=sidebyside 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;