X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d84afea9d1ec41ee4e2ebb3bf6b87926cf5f04d1..81764280afaa3e2ff80aa16a2ee433358e7ff272:/include/wx/gtk/region.h diff --git a/include/wx/gtk/region.h b/include/wx/gtk/region.h index 5adf4edeb9..1b7f06cf85 100644 --- a/include/wx/gtk/region.h +++ b/include/wx/gtk/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: