X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0c133e13b36a923c65f94499554e432bc3a0daa..ab67e8874db324fab5223cc8d5dff8a8de3e2b77:/include/wx/osx/dcmemory.h?ds=sidebyside diff --git a/include/wx/osx/dcmemory.h b/include/wx/osx/dcmemory.h index 382d79b01c..9725026777 100644 --- a/include/wx/osx/dcmemory.h +++ b/include/wx/osx/dcmemory.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: dcmemory.h +// Name: wx/osx/dcmemory.h // Purpose: wxMemoryDC class // Author: Stefan Csomor // Modified by: @@ -19,12 +19,12 @@ class WXDLLIMPEXP_CORE wxMemoryDCImpl: public wxPaintDCImpl public: wxMemoryDCImpl( wxMemoryDC *owner ); wxMemoryDCImpl( wxMemoryDC *owner, wxBitmap& bitmap ); - wxMemoryDCImpl( wxMemoryDC *owner, wxDC *dc ); - + wxMemoryDCImpl( wxMemoryDC *owner, wxDC *dc ); + virtual ~wxMemoryDCImpl(); virtual void DoGetSize( int *width, int *height ) const; - virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const + virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const { return subrect == NULL ? GetSelectedBitmap() : GetSelectedBitmap().GetSubBitmap(*subrect); } virtual void DoSelect(const wxBitmap& bitmap); @@ -32,12 +32,12 @@ public: { return m_selected; } virtual wxBitmap& GetSelectedBitmap() { return m_selected; } - + private: void Init(); wxBitmap m_selected; - + DECLARE_CLASS(wxMemoryDCImpl) wxDECLARE_NO_COPY_CLASS(wxMemoryDCImpl); };