1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dfb/dcmemory.h
3 // Purpose: wxMemoryDC class declaration
5 // Author: Vaclav Slavik
7 // Copyright: (c) 2006 REA Elektronik GmbH
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_DFB_DCMEMORY_H_
12 #define _WX_DFB_DCMEMORY_H_
15 #include "wx/bitmap.h"
17 class WXDLLIMPEXP_CORE wxMemoryDC
: public wxDC
, public wxMemoryDCBase
20 wxMemoryDC() { Init(); }
21 wxMemoryDC(wxBitmap
& bitmap
) { Init(); SelectObject(bitmap
); }
22 wxMemoryDC(wxDC
*dc
); // create compatible DC
24 // implementation from now on:
26 wxBitmap
GetSelectedObject() const { return m_bmp
; }
29 virtual void DoSelect(const wxBitmap
& bitmap
);
36 DECLARE_DYNAMIC_CLASS(wxMemoryDC
)
39 #endif // _WX_DFB_DCMEMORY_H_