]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/dfb/dcmemory.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / dfb / dcmemory.h
... / ...
CommitLineData
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
16class WXDLLIMPEXP_CORE wxMemoryDCImpl : public wxDFBDCImpl
17{
18public:
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
28private:
29 void Init();
30
31 wxBitmap m_bmp;
32
33 DECLARE_DYNAMIC_CLASS(wxMemoryDCImpl)
34};
35
36#endif // _WX_DFB_DCMEMORY_H_
37