]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dfb/dcmemory.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / dfb / dcmemory.h
CommitLineData
b3c86150
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/dfb/dcmemory.h
3// Purpose: wxMemoryDC class declaration
4// Created: 2006-08-10
5// Author: Vaclav Slavik
b3c86150
VS
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
4a624f6e 13#include "wx/dfb/dc.h"
b3c86150
VS
14#include "wx/bitmap.h"
15
4a624f6e 16class WXDLLIMPEXP_CORE wxMemoryDCImpl : public wxDFBDCImpl
b3c86150
VS
17{
18public:
4d2df97f
VS
19 wxMemoryDCImpl(wxMemoryDC *owner);
20 wxMemoryDCImpl(wxMemoryDC *owner, wxBitmap& bitmap);
4a624f6e
VZ
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; }
fea35690
VZ
26 virtual void DoSelect(const wxBitmap& bitmap);
27
5942996c 28private:
fea35690
VZ
29 void Init();
30
5942996c
VS
31 wxBitmap m_bmp;
32
4a624f6e 33 DECLARE_DYNAMIC_CLASS(wxMemoryDCImpl)
b3c86150
VS
34};
35
36#endif // _WX_DFB_DCMEMORY_H_
37