X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..115563867dac8edf57b6d2c6ae95910c7f277d77:/include/wx/mac/carbon/dcclient.h diff --git a/include/wx/mac/carbon/dcclient.h b/include/wx/mac/carbon/dcclient.h index e8f9dc7e8a..448d6b4322 100644 --- a/include/wx/mac/carbon/dcclient.h +++ b/include/wx/mac/carbon/dcclient.h @@ -18,8 +18,8 @@ // classes //----------------------------------------------------------------------------- -class WXDLLEXPORT wxPaintDC; -class WXDLLEXPORT wxWindow; +class WXDLLIMPEXP_FWD_CORE wxPaintDC; +class WXDLLIMPEXP_FWD_CORE wxWindow; class WXDLLEXPORT wxWindowDC: public wxDC { @@ -31,10 +31,17 @@ 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; + virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const; wxWindow *m_window; + + bool m_release; + int m_width; + int m_height; + }; @@ -48,8 +55,9 @@ class WXDLLEXPORT wxClientDC: public wxWindowDC // Create a DC corresponding to a canvas wxClientDC(wxWindow *win); - ~wxClientDC(void); - virtual void DoGetSize( int *width, int *height ) const; + virtual ~wxClientDC(void); + +protected: }; class WXDLLEXPORT wxPaintDC: public wxWindowDC @@ -62,8 +70,9 @@ class WXDLLEXPORT wxPaintDC: public wxWindowDC // Create a DC corresponding to a canvas wxPaintDC(wxWindow *win); - ~wxPaintDC(void); - virtual void DoGetSize( int *width, int *height ) const; + virtual ~wxPaintDC(void); + +protected: }; #endif