X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..ff1dadae388b2f408874b80251d64d16d9d46280:/include/wx/mac/carbon/dcclient.h diff --git a/include/wx/mac/carbon/dcclient.h b/include/wx/mac/carbon/dcclient.h index e8f9dc7e8a..def0ad4cc3 100644 --- a/include/wx/mac/carbon/dcclient.h +++ b/include/wx/mac/carbon/dcclient.h @@ -31,9 +31,10 @@ class WXDLLEXPORT wxWindowDC: public wxDC // Create a DC corresponding to a canvas wxWindowDC(wxWindow *win); - ~wxWindowDC(void); - virtual void DoGetSize( int *width, int *height ) const; + virtual ~wxWindowDC(void); + wxWindow *GetWindow() const { return m_window; } protected : + virtual void DoGetSize( int *width, int *height ) const; wxWindow *m_window; }; @@ -48,7 +49,9 @@ class WXDLLEXPORT wxClientDC: public wxWindowDC // Create a DC corresponding to a canvas wxClientDC(wxWindow *win); - ~wxClientDC(void); + virtual ~wxClientDC(void); + +protected: virtual void DoGetSize( int *width, int *height ) const; }; @@ -62,7 +65,9 @@ class WXDLLEXPORT wxPaintDC: public wxWindowDC // Create a DC corresponding to a canvas wxPaintDC(wxWindow *win); - ~wxPaintDC(void); + virtual ~wxPaintDC(void); + +protected: virtual void DoGetSize( int *width, int *height ) const; };