]> git.saurik.com Git - wxWidgets.git/blob - include/wx/dfb/dcmemory.h
don't propagate wxChildFocusEvent outside of wxTLWs
[wxWidgets.git] / include / wx / dfb / dcmemory.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dfb/dcmemory.h
3 // Purpose: wxMemoryDC class declaration
4 // Created: 2006-08-10
5 // Author: Vaclav Slavik
6 // RCS-ID: $Id$
7 // Copyright: (c) 2006 REA Elektronik GmbH
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_DFB_DCMEMORY_H_
12 #define _WX_DFB_DCMEMORY_H_
13
14 #include "wx/dc.h"
15 #include "wx/bitmap.h"
16
17 class WXDLLIMPEXP_CORE wxMemoryDC : public wxDC, public wxMemoryDCBase
18 {
19 public:
20 wxMemoryDC() { Init(); }
21 wxMemoryDC(wxBitmap& bitmap) { Init(); SelectObject(bitmap); }
22 wxMemoryDC(wxDC *dc); // create compatible DC
23
24 // implementation from now on:
25
26 wxBitmap GetSelectedObject() const { return m_bmp; }
27
28 protected:
29 virtual void DoSelect(const wxBitmap& bitmap);
30
31 private:
32 void Init();
33
34 wxBitmap m_bmp;
35
36 DECLARE_DYNAMIC_CLASS(wxMemoryDC)
37 };
38
39 #endif // _WX_DFB_DCMEMORY_H_
40