1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/dcmemory.h
3 // Purpose: wxMemoryDC class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_DCMEMORY_H_
13 #define _WX_DCMEMORY_H_
15 #include "wx/dcclient.h"
17 class WXDLLIMPEXP_CORE wxMemoryDC
: public wxWindowDC
, public wxMemoryDCBase
19 DECLARE_DYNAMIC_CLASS(wxMemoryDC
)
22 wxMemoryDC() { Init(); }
23 wxMemoryDC(wxBitmap
& bitmap
) { Init(); SelectObject(bitmap
); }
24 wxMemoryDC( wxDC
*dc
); // Create compatible DC
25 virtual ~wxMemoryDC();
27 void DoGetSize( int *width
, int *height
) const;
29 wxBitmap
& GetBitmap() const { return (wxBitmap
&) m_bitmap
; }
32 virtual void DoSelect(const wxBitmap
& bitmap
);
35 friend class wxPaintDC
;