1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/dcmemory.h
3 // Purpose: wxMemoryDC class
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_DCMEMORY_H_
13 #define _WX_DCMEMORY_H_
15 #include "wx/dcmemory.h"
16 #include "wx/palmos/dc.h"
18 class WXDLLIMPEXP_CORE wxMemoryDCImpl
: public wxPalmDCImpl
21 wxMemoryDCImpl( wxMemoryDC
*owner
);
22 wxMemoryDCImpl( wxMemoryDC
*owner
, wxBitmap
& bitmap
);
23 wxMemoryDCImpl( wxMemoryDC
*owner
, wxDC
*dc
); // Create compatible DC
25 // override some base class virtuals
26 virtual void DoGetSize(int* width
, int* height
) const;
27 virtual void DoSelect(const wxBitmap
& bitmap
);
29 virtual wxBitmap
DoGetAsBitmap(const wxRect
* subrect
) const;
32 // create DC compatible with the given one or screen if dc == NULL
33 bool CreateCompatible(wxDC
*dc
);
35 // initialize the newly created DC
38 DECLARE_CLASS(wxMemoryDCImpl
)
39 DECLARE_NO_COPY_CLASS(wxMemoryDCImpl
)