]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/stubs/region.h
wxComboBox included (removed dependency on wxUSE_COMBOBOX which was never
[wxWidgets.git] / include / wx / stubs / region.h
index 02bf97845fecd20534ce1116e04fef5b43f3b6dc..04d143c2e92ac6a747d91e0638fa598dcc2fba5b 100644 (file)
@@ -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;