]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/dcmemory.h
Remove defined(__WXMAC__) && defined(__APPLE__) case from the OS if/elif block.
[wxWidgets.git] / include / wx / os2 / dcmemory.h
CommitLineData
0e320a79
DW
1/////////////////////////////////////////////////////////////////////////////
2// Name: dcmemory.h
3// Purpose: wxMemoryDC class
f0a56ab0 4// Author: David Webster
0e320a79 5// Modified by:
f0a56ab0 6// Created: 09/09/99
0e320a79 7// RCS-ID: $Id$
f0a56ab0 8// Copyright: (c) David Webster
65571936 9// Licence: wxWindows licence
0e320a79
DW
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_DCMEMORY_H_
13#define _WX_DCMEMORY_H_
14
0e320a79
DW
15#include "wx/dcclient.h"
16
fea35690 17class WXDLLEXPORT wxMemoryDC: public wxDC, public wxMemoryDCBase
0e320a79 18{
5afb9458 19public:
fea35690
VZ
20 wxMemoryDC() { CreateCompatible(NULL); Init(); }
21 wxMemoryDC(wxBitmap& bitmap) { CreateCompatible(NULL); Init(); SelectObject(bitmap); }
5afb9458 22 wxMemoryDC(wxDC* pDC); // Create compatible DC
ce44c50e 23
ac7fb818
DW
24protected:
25 // override some base class virtuals
5afb9458
DW
26 virtual void DoGetSize( int* pWidth
27 ,int* pHeight
28 ) const;
fea35690
VZ
29 virtual void DoSelect(const wxBitmap& bitmap);
30
ac7fb818
DW
31 // create DC compatible with the given one or screen if dc == NULL
32 bool CreateCompatible(wxDC* pDC);
33
34 // initialize the newly created DC
35 void Init(void);
36private:
37 DECLARE_DYNAMIC_CLASS(wxMemoryDC)
5afb9458 38}; // end of CLASS wxMemoryDC
0e320a79
DW
39
40#endif
41 // _WX_DCMEMORY_H_