1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __WX_DCMEMORY_H__
12 #define __WX_DCMEMORY_H__
15 #pragma interface "dcmemory.h"
19 #include "wx/dcclient.h"
21 //-----------------------------------------------------------------------------
23 //-----------------------------------------------------------------------------
25 class WXDLLEXPORT wxMemoryDC
;
27 //-----------------------------------------------------------------------------
29 //-----------------------------------------------------------------------------
31 class WXDLLEXPORT wxMemoryDC
: public wxDC
35 wxMemoryDC(wxDC
*dc
); // Create compatible DC
37 virtual void SelectObject(const wxBitmap
& bitmap
);
39 // these get reimplemented for mono-bitmaps to behave
40 // more like their Win32 couterparts. They now interpret
41 // wxWHITE, wxWHITE_BRUSH and wxWHITE_PEN as drawing 0
42 // and everything else as drawing 1.
43 virtual void SetPen(const wxPen
&pen
);
44 virtual void SetBrush(const wxBrush
&brush
);
45 virtual void SetTextForeground(const wxColour
&col
);
46 virtual void SetTextBackground(const wxColour
&col
);
51 wxBitmap
GetSelectedObject() const { return m_selected
; }
54 DECLARE_DYNAMIC_CLASS(wxMemoryDC
)