]> git.saurik.com Git - wxWidgets.git/blob - include/wx/dfb/dcmemory.h
fix wxWindow::PushEventHandler and related wxWindow functions for the stack managemen...
[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/dfb/dc.h"
15 #include "wx/bitmap.h"
16
17 class WXDLLIMPEXP_CORE wxMemoryDCImpl : public wxDFBDCImpl
18 {
19 public:
20 wxMemoryDCImpl(wxMemoryDC *owner);
21 wxMemoryDCImpl(wxMemoryDC *owner, wxBitmap& bitmap);
22 wxMemoryDCImpl(wxMemoryDC *owner, wxDC *dc); // create compatible DC
23
24 // override wxMemoryDC-specific base class virtual methods
25 virtual const wxBitmap& GetSelectedBitmap() const { return m_bmp; }
26 virtual wxBitmap& GetSelectedBitmap() { return m_bmp; }
27 virtual void DoSelect(const wxBitmap& bitmap);
28
29 private:
30 void Init();
31
32 wxBitmap m_bmp;
33
34 DECLARE_DYNAMIC_CLASS(wxMemoryDCImpl)
35 };
36
37 #endif // _WX_DFB_DCMEMORY_H_
38