]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/dcmemory.h
no changes (0 -> NULL)
[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
DW
8// Copyright: (c) David Webster
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
fb46a9a6 17class WXDLLEXPORT wxMemoryDC: public wxDC
0e320a79 18{
5afb9458 19public:
0e320a79 20 wxMemoryDC(void);
5afb9458 21 wxMemoryDC(wxDC* pDC); // Create compatible DC
ce44c50e 22
5afb9458 23 virtual void SelectObject(const wxBitmap& rBitmap);
ac7fb818
DW
24protected:
25 // override some base class virtuals
26 virtual void DoDrawRectangle( wxCoord vX
27 ,wxCoord vY
28 ,wxCoord vWidth
29 ,wxCoord vHeight
30 );
2d5855f6
DW
31 virtual void DoDrawRoundedRectangle( wxCoord vX
32 ,wxCoord vY
33 ,wxCoord vWidth
34 ,wxCoord vHeight
35 ,double dRadius
36 );
37 virtual void DoDrawText( const wxString& rsText
38 ,wxCoord vX
39 ,wxCoord vY
40 );
41 virtual void DoDrawLine( wxCoord vX1
42 ,wxCoord vY1
43 ,wxCoord vX2
44 ,wxCoord vY2
45 );
5afb9458
DW
46 virtual void DoGetSize( int* pWidth
47 ,int* pHeight
48 ) const;
ac7fb818
DW
49 // create DC compatible with the given one or screen if dc == NULL
50 bool CreateCompatible(wxDC* pDC);
51
52 // initialize the newly created DC
53 void Init(void);
54private:
55 DECLARE_DYNAMIC_CLASS(wxMemoryDC)
5afb9458 56}; // end of CLASS wxMemoryDC
0e320a79
DW
57
58#endif
59 // _WX_DCMEMORY_H_