]>
Commit | Line | Data |
---|---|---|
32b8ec41 VZ |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: dcmemory.h | |
3 | // Purpose: | |
4 | // Author: Vaclav Slavik | |
5 | // RCS-ID: $Id$ | |
52750c2e | 6 | // Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com) |
65571936 | 7 | // Licence: wxWindows licence |
32b8ec41 VZ |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
32b8ec41 VZ |
10 | #ifndef __WX_DCMEMORY_H__ |
11 | #define __WX_DCMEMORY_H__ | |
12 | ||
32b8ec41 VZ |
13 | #include "wx/defs.h" |
14 | #include "wx/dcclient.h" | |
15 | ||
16 | //----------------------------------------------------------------------------- | |
17 | // classes | |
18 | //----------------------------------------------------------------------------- | |
19 | ||
20 | class WXDLLEXPORT wxMemoryDC; | |
21 | ||
22 | //----------------------------------------------------------------------------- | |
23 | // wxMemoryDC | |
24 | //----------------------------------------------------------------------------- | |
25 | ||
26 | class WXDLLEXPORT wxMemoryDC : public wxDC | |
27 | { | |
28 | public: | |
29 | wxMemoryDC(); | |
30 | wxMemoryDC(wxDC *dc); // Create compatible DC | |
31 | ~wxMemoryDC(); | |
32 | virtual void SelectObject(const wxBitmap& bitmap); | |
33 | ||
34 | // these get reimplemented for mono-bitmaps to behave | |
35 | // more like their Win32 couterparts. They now interpret | |
36 | // wxWHITE, wxWHITE_BRUSH and wxWHITE_PEN as drawing 0 | |
37 | // and everything else as drawing 1. | |
38 | virtual void SetPen(const wxPen &pen); | |
39 | virtual void SetBrush(const wxBrush &brush); | |
40 | virtual void SetTextForeground(const wxColour &col); | |
41 | virtual void SetTextBackground(const wxColour &col); | |
42 | ||
43 | // implementation | |
44 | wxBitmap m_selected; | |
45 | ||
46 | wxBitmap GetSelectedObject() const { return m_selected; } | |
47 | ||
48 | private: | |
49 | DECLARE_DYNAMIC_CLASS(wxMemoryDC) | |
50 | }; | |
51 | ||
52 | #endif | |
53 | // __WX_DCMEMORY_H__ | |
54 |