X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3572173c014d7a886bdb188e9238bae099d30755..f8c4475a3e579655f6a962822824596a7a9cfb66:/include/wx/motif/region.h?ds=sidebyside diff --git a/include/wx/motif/region.h b/include/wx/motif/region.h index d4a78f1a43..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 {