1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxMemoryDC class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_DCMEMORY_H_
13 #define _WX_DCMEMORY_H_
15 #include "wx/mac/carbon/dcclient.h"
17 class WXDLLEXPORT wxMemoryDCImpl
: public wxPaintDCImpl
20 wxMemoryDCImpl( wxMemoryDC
*owner
);
21 wxMemoryDCImpl( wxMemoryDC
*owner
, wxBitmap
& bitmap
);
22 wxMemoryDCImpl( wxMemoryDC
*owner
, wxDC
*dc
);
24 virtual ~wxMemoryDCImpl();
27 virtual void DoGetSize( int *width
, int *height
) const;
28 virtual wxBitmap
DoGetAsBitmap(const wxRect
*subrect
) const
29 { return subrect
== NULL
? GetSelectedBitmap() : GetSelectedBitmap().GetSubBitmap(*subrect
); }
30 virtual void DoSelect(const wxBitmap
& bitmap
);
38 DECLARE_CLASS(wxMemoryDCImpl
)
39 DECLARE_NO_COPY_CLASS(wxMemoryDCImpl
)