]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dfb/dcmemory.h
don't deprecate the entire wxDrawObject class, this results in warnings when we just...
[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
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
4a624f6e 14#include "wx/dfb/dc.h"
b3c86150
VS
15#include "wx/bitmap.h"
16
4a624f6e 17class WXDLLIMPEXP_CORE wxMemoryDCImpl : public wxDFBDCImpl
b3c86150
VS
18{
19public:
4d2df97f
VS
20 wxMemoryDCImpl(wxMemoryDC *owner);
21 wxMemoryDCImpl(wxMemoryDC *owner, wxBitmap& bitmap);
4a624f6e
VZ
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; }
fea35690
VZ
27 virtual void DoSelect(const wxBitmap& bitmap);
28
5942996c 29private:
fea35690
VZ
30 void Init();
31
5942996c
VS
32 wxBitmap m_bmp;
33
4a624f6e 34 DECLARE_DYNAMIC_CLASS(wxMemoryDCImpl)
b3c86150
VS
35};
36
37#endif // _WX_DFB_DCMEMORY_H_
38