X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/46a1983ae4a56bfa64b7dcc171f7d996cd980d8c..8e77fd8bca165aab9709649d79a7cbc6a172d4e1:/include/wx/gtk/region.h?ds=sidebyside diff --git a/include/wx/gtk/region.h b/include/wx/gtk/region.h index a00a0af674..2069305b71 100644 --- a/include/wx/gtk/region.h +++ b/include/wx/gtk/region.h @@ -10,6 +10,10 @@ #ifndef _WX_GTK_REGION_H_ #define _WX_GTK_REGION_H_ +#ifdef __WXGTK3__ +typedef struct _cairo_region cairo_region_t; +#endif + // ---------------------------------------------------------------------------- // wxRegion // ---------------------------------------------------------------------------- @@ -56,12 +60,12 @@ public: virtual void Clear(); virtual bool IsEmpty() const; -public: - // Init with GdkRegion, set ref count to 2 so that - // the C++ class will not destroy the region! - wxRegion( GdkRegion *region ); - +#ifdef __WXGTK3__ + cairo_region_t* GetRegion() const; +#else + wxRegion(const GdkRegion* region); GdkRegion *GetRegion() const; +#endif protected: virtual wxGDIRefData *CreateGDIRefData() const;