]>
Commit | Line | Data |
---|---|---|
6762286d | 1 | ///////////////////////////////////////////////////////////////////////////// |
80fdcdb9 | 2 | // Name: wx/osx/dcmemory.h |
6762286d SC |
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 | ||
ccd5d46c | 15 | #include "wx/osx/dcclient.h" |
6762286d SC |
16 | |
17 | class WXDLLIMPEXP_CORE wxMemoryDCImpl: public wxPaintDCImpl | |
18 | { | |
19 | public: | |
20 | wxMemoryDCImpl( wxMemoryDC *owner ); | |
21 | wxMemoryDCImpl( wxMemoryDC *owner, wxBitmap& bitmap ); | |
03647350 VZ |
22 | wxMemoryDCImpl( wxMemoryDC *owner, wxDC *dc ); |
23 | ||
6762286d SC |
24 | virtual ~wxMemoryDCImpl(); |
25 | ||
26 | virtual void DoGetSize( int *width, int *height ) const; | |
03647350 | 27 | virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const |
6762286d SC |
28 | { return subrect == NULL ? GetSelectedBitmap() : GetSelectedBitmap().GetSubBitmap(*subrect); } |
29 | virtual void DoSelect(const wxBitmap& bitmap); | |
30 | ||
31 | virtual const wxBitmap& GetSelectedBitmap() const | |
32 | { return m_selected; } | |
33 | virtual wxBitmap& GetSelectedBitmap() | |
34 | { return m_selected; } | |
03647350 | 35 | |
6762286d SC |
36 | private: |
37 | void Init(); | |
38 | ||
39 | wxBitmap m_selected; | |
03647350 | 40 | |
6762286d | 41 | DECLARE_CLASS(wxMemoryDCImpl) |
c0c133e1 | 42 | wxDECLARE_NO_COPY_CLASS(wxMemoryDCImpl); |
6762286d SC |
43 | }; |
44 | ||
5c6eb3a8 | 45 | #endif |
6762286d | 46 | // _WX_DCMEMORY_H_ |