]> git.saurik.com Git - wxWidgets.git/blob - include/wx/palmos/dcmemory.h
Add --disable-gui and --disable-all-features builds to the ravnsgaard buildbot.
[wxWidgets.git] / include / wx / palmos / dcmemory.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/dcmemory.h
3 // Purpose: wxMemoryDC class
4 // Author: William Osborne - minimal working wxPalmOS port
5 // Modified by:
6 // Created: 10/13/04
7 // RCS-ID: $Id$
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_DCMEMORY_H_
13 #define _WX_DCMEMORY_H_
14
15 #include "wx/dcmemory.h"
16 #include "wx/palmos/dc.h"
17
18 class WXDLLIMPEXP_CORE wxMemoryDCImpl: public wxPalmDCImpl
19 {
20 public:
21 wxMemoryDCImpl( wxMemoryDC *owner );
22 wxMemoryDCImpl( wxMemoryDC *owner, wxBitmap& bitmap );
23 wxMemoryDCImpl( wxMemoryDC *owner, wxDC *dc ); // Create compatible DC
24
25 // override some base class virtuals
26 virtual void DoGetSize(int* width, int* height) const;
27 virtual void DoSelect(const wxBitmap& bitmap);
28
29 virtual wxBitmap DoGetAsBitmap(const wxRect* subrect) const;
30
31 protected:
32 // create DC compatible with the given one or screen if dc == NULL
33 bool CreateCompatible(wxDC *dc);
34
35 // initialize the newly created DC
36 void Init();
37
38 DECLARE_CLASS(wxMemoryDCImpl)
39 wxDECLARE_NO_COPY_CLASS(wxMemoryDCImpl);
40 };
41
42 #endif
43 // _WX_DCMEMORY_H_