]> git.saurik.com Git - wxWidgets.git/blob - include/wx/dfb/dcmemory.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[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 // Copyright: (c) 2006 REA Elektronik GmbH
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_DFB_DCMEMORY_H_
11 #define _WX_DFB_DCMEMORY_H_
12
13 #include "wx/dfb/dc.h"
14 #include "wx/bitmap.h"
15
16 class WXDLLIMPEXP_CORE wxMemoryDCImpl : public wxDFBDCImpl
17 {
18 public:
19 wxMemoryDCImpl(wxMemoryDC *owner);
20 wxMemoryDCImpl(wxMemoryDC *owner, wxBitmap& bitmap);
21 wxMemoryDCImpl(wxMemoryDC *owner, wxDC *dc); // create compatible DC
22
23 // override wxMemoryDC-specific base class virtual methods
24 virtual const wxBitmap& GetSelectedBitmap() const { return m_bmp; }
25 virtual wxBitmap& GetSelectedBitmap() { return m_bmp; }
26 virtual void DoSelect(const wxBitmap& bitmap);
27
28 private:
29 void Init();
30
31 wxBitmap m_bmp;
32
33 DECLARE_DYNAMIC_CLASS(wxMemoryDCImpl)
34 };
35
36 #endif // _WX_DFB_DCMEMORY_H_
37