X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f02a879ed7efc5fcf6328ff47a1352ec82812b7..dc484d491b15355285a89da275c58c2ef247d1f4:/include/wx/mac/carbon/dcclient.h?ds=sidebyside diff --git a/include/wx/mac/carbon/dcclient.h b/include/wx/mac/carbon/dcclient.h index 993e01dacd..b743ea7918 100644 --- a/include/wx/mac/carbon/dcclient.h +++ b/include/wx/mac/carbon/dcclient.h @@ -31,10 +31,17 @@ class WXDLLEXPORT wxWindowDC: public wxDC // Create a DC corresponding to a canvas wxWindowDC(wxWindow *win); - ~wxWindowDC(void); + virtual ~wxWindowDC(void); + wxWindow *GetWindow() const { return m_window; } protected : virtual void DoGetSize( int *width, int *height ) const; + virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const; wxWindow *m_window; +#if wxMAC_USE_CORE_GRAPHICS + bool m_release; + int m_width; + int m_height; +#endif }; @@ -48,10 +55,12 @@ class WXDLLEXPORT wxClientDC: public wxWindowDC // Create a DC corresponding to a canvas wxClientDC(wxWindow *win); - ~wxClientDC(void); + virtual ~wxClientDC(void); protected: +#if !wxMAC_USE_CORE_GRAPHICS virtual void DoGetSize( int *width, int *height ) const; +#endif }; class WXDLLEXPORT wxPaintDC: public wxWindowDC @@ -64,10 +73,12 @@ class WXDLLEXPORT wxPaintDC: public wxWindowDC // Create a DC corresponding to a canvas wxPaintDC(wxWindow *win); - ~wxPaintDC(void); + virtual ~wxPaintDC(void); protected: +#if !wxMAC_USE_CORE_GRAPHICS virtual void DoGetSize( int *width, int *height ) const; +#endif }; #endif