]>
Commit | Line | Data |
---|---|---|
8cf73271 SC |
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 | |
65571936 | 9 | // Licence: wxWindows licence |
8cf73271 SC |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_DCMEMORY_H_ | |
13 | #define _WX_DCMEMORY_H_ | |
14 | ||
888dde65 | 15 | #include "wx/mac/carbon/dcclient.h" |
8cf73271 | 16 | |
888dde65 | 17 | class WXDLLEXPORT wxMemoryDCImpl: public wxPaintDCImpl |
8cf73271 | 18 | { |
fea35690 | 19 | public: |
888dde65 RR |
20 | wxMemoryDCImpl( wxMemoryDC *owner ); |
21 | wxMemoryDCImpl( wxMemoryDC *owner, wxBitmap& bitmap ); | |
22 | wxMemoryDCImpl( wxMemoryDC *owner, wxDC *dc ); | |
23 | ||
24 | virtual ~wxMemoryDCImpl(); | |
6f02a879 VZ |
25 | |
26 | protected: | |
27 | virtual void DoGetSize( int *width, int *height ) const; | |
d888a332 | 28 | virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const |
888dde65 | 29 | { return subrect == NULL ? GetSelectedBitmap() : GetSelectedBitmap().GetSubBitmap(*subrect); } |
fea35690 VZ |
30 | virtual void DoSelect(const wxBitmap& bitmap); |
31 | ||
32 | private: | |
33 | void Init(); | |
6f02a879 | 34 | |
8cf73271 | 35 | wxBitmap m_selected; |
888dde65 RR |
36 | |
37 | private: | |
38 | DECLARE_CLASS(wxMemoryDCImpl) | |
39 | DECLARE_NO_COPY_CLASS(wxMemoryDCImpl) | |
8cf73271 SC |
40 | }; |
41 | ||
42 | #endif | |
43 | // _WX_DCMEMORY_H_ |