X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c2019b9426b21bd0eb3099afb2cb8cb901ce8b9..331a0b6b7aeb8b41d4ac27aeedbdca11b6f0b38e:/include/wx/gtk1/region.h 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: