]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/dcmemory.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxMemoryDC class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_DCMEMORY_H_
13 #define _WX_DCMEMORY_H_
15 #include "wx/dcclient.h"
17 class WXDLLEXPORT wxMemoryDC
: public wxDC
21 wxMemoryDC(wxDC
* pDC
); // Create compatible DC
23 virtual void SelectObject(const wxBitmap
& rBitmap
);
25 // override some base class virtuals
26 virtual void DoDrawRectangle( wxCoord vX
31 virtual void DoDrawRoundedRectangle( wxCoord vX
37 virtual void DoDrawText( const wxString
& rsText
41 virtual void DoDrawLine( wxCoord vX1
46 virtual void DoGetSize( int* pWidth
49 // create DC compatible with the given one or screen if dc == NULL
50 bool CreateCompatible(wxDC
* pDC
);
52 // initialize the newly created DC
55 DECLARE_DYNAMIC_CLASS(wxMemoryDC
)
56 }; // end of CLASS wxMemoryDC