X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d84afea9d1ec41ee4e2ebb3bf6b87926cf5f04d1..bf89b538f24d96be1dbb5bfa4037397b5438c5e2:/include/wx/gtk1/region.h?ds=sidebyside diff --git a/include/wx/gtk1/region.h b/include/wx/gtk1/region.h index 5adf4edeb9..1b7f06cf85 100644 --- a/include/wx/gtk1/region.h +++ b/include/wx/gtk1/region.h @@ -53,7 +53,7 @@ class wxRegion : public wxGDIObject { public: wxRegion() { } - + wxRegion( wxCoord x, wxCoord y, wxCoord w, wxCoord h ) { InitRect(x, y, w, h); @@ -115,6 +115,10 @@ public: wxRegionContain Contains(const wxRect& rect) const; public: + // Init with GdkRegion, set ref count to 2 so that + // the C++ class will not destroy the region! + wxRegion( GdkRegion *region ); + GdkRegion *GetRegion() const; protected: