]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/dcmemory.h
Forgot this one.
[wxWidgets.git] / include / wx / mac / carbon / dcmemory.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: dcmemory.h
3 // Purpose: wxMemoryDC class
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 1998-01-01
7 // RCS-ID: $Id$
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_DCMEMORY_H_
13 #define _WX_DCMEMORY_H_
14
15 #include "wx/mac/carbon/dcclient.h"
16
17 class WXDLLEXPORT wxMemoryDCImpl: public wxPaintDCImpl
18 {
19 public:
20 wxMemoryDCImpl( wxMemoryDC *owner );
21 wxMemoryDCImpl( wxMemoryDC *owner, wxBitmap& bitmap );
22 wxMemoryDCImpl( wxMemoryDC *owner, wxDC *dc );
23
24 virtual ~wxMemoryDCImpl();
25
26 virtual void DoGetSize( int *width, int *height ) const;
27 virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const
28 { return subrect == NULL ? GetSelectedBitmap() : GetSelectedBitmap().GetSubBitmap(*subrect); }
29 virtual void DoSelect(const wxBitmap& bitmap);
30
31 private:
32 void Init();
33
34 wxBitmap m_selected;
35
36 DECLARE_CLASS(wxMemoryDCImpl)
37 DECLARE_NO_COPY_CLASS(wxMemoryDCImpl)
38 };
39
40 #endif
41 // _WX_DCMEMORY_H_