]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/dcmemory.h
Further performance optimizations
[wxWidgets.git] / include / wx / palmos / dcmemory.h
CommitLineData
ffecfa5a
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/palmos/dcmemory.h
3// Purpose: wxMemoryDC class
e1d63b79 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/13/04
e1d63b79 7// RCS-ID: $Id$
ffecfa5a
JS
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_DCMEMORY_H_
13#define _WX_DCMEMORY_H_
14
e2fc40b4
VZ
15#include "wx/dcmemory.h"
16#include "wx/palmos/dc.h"
ffecfa5a 17
53a2db12 18class WXDLLIMPEXP_CORE wxMemoryDCImpl: public wxPalmDCImpl
ffecfa5a
JS
19{
20public:
e2fc40b4
VZ
21 wxMemoryDCImpl( wxMemoryDC *owner );
22 wxMemoryDCImpl( wxMemoryDC *owner, wxBitmap& bitmap );
23 wxMemoryDCImpl( wxMemoryDC *owner, wxDC *dc ); // Create compatible DC
ffecfa5a 24
ffecfa5a 25 // override some base class virtuals
ffecfa5a 26 virtual void DoGetSize(int* width, int* height) const;
fea35690 27 virtual void DoSelect(const wxBitmap& bitmap);
ffecfa5a 28
e2fc40b4
VZ
29 virtual wxBitmap DoGetAsBitmap(const wxRect* subrect) const;
30
31protected:
ffecfa5a
JS
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
e2fc40b4
VZ
38 DECLARE_CLASS(wxMemoryDCImpl)
39 DECLARE_NO_COPY_CLASS(wxMemoryDCImpl)
ffecfa5a
JS
40};
41
42#endif
43 // _WX_DCMEMORY_H_