X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b6dbb09746f8f5ee0549a2ff39ae0ac4c725898..9018abe3ef28d237b0421c8d96987907adbe5532:/include/wx/motif/region.h diff --git a/include/wx/motif/region.h b/include/wx/motif/region.h index 99a2ef63f9..969a44f654 100644 --- a/include/wx/motif/region.h +++ b/include/wx/motif/region.h @@ -18,6 +18,7 @@ #include "wx/list.h" #include "wx/gdiobj.h" +#include "wx/gdicmn.h" class WXDLLEXPORT wxRect; class WXDLLEXPORT wxPoint; @@ -83,7 +84,8 @@ public: // Is region empty? bool Empty() const; - inline bool IsEmpty() const { return Empty(); } + inline bool IsEmpty() const { return Empty(); } + bool Ok() const { return (m_refData != NULL) ; } //# Tests // Does the region contain the point (x,y)? @@ -99,6 +101,9 @@ public: bool Combine(long x, long y, long width, long height, wxRegionOp op); bool Combine(const wxRegion& region, wxRegionOp op); bool Combine(const wxRect& rect, wxRegionOp op); + + // Get the internal Region handle + WXRegion GetXRegion() const; }; class WXDLLEXPORT wxRegionIterator : public wxObject { @@ -123,6 +128,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;