X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/48850fa74dee8ace36f70059f1938488c4196a97..c2bbeff0048b6f02bf1ef41edc6c7a3ce148f907:/include/wx/gtk/region.h diff --git a/include/wx/gtk/region.h b/include/wx/gtk/region.h index b7fd0acf9e..5adf4edeb9 100644 --- a/include/wx/gtk/region.h +++ b/include/wx/gtk/region.h @@ -71,13 +71,17 @@ public: } wxRegion( size_t n, const wxPoint *points, int fillStyle = wxODDEVEN_RULE ); - virtual ~wxRegion(); + ~wxRegion(); - wxRegion( const wxRegion& r ) { Ref(r); } - wxRegion& operator = ( const wxRegion& r ) { Ref(r); return *this; } + wxRegion( const wxRegion& region ) + : wxGDIObject() + { Ref(region); } + wxRegion& operator = ( const wxRegion& region ) { Ref(region); return *this; } + + bool Ok() const { return m_refData != NULL; } bool operator == ( const wxRegion& region ); - bool operator != ( const wxRegion& region ); + bool operator != ( const wxRegion& region ) { return !(*this == region); } void Clear();