]>
Commit | Line | Data |
---|---|---|
83df96d6 JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: dcmemory.h | |
3 | // Purpose: wxMemoryDC class | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 17/09/98 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Julian Smart | |
65571936 | 9 | // Licence: wxWindows licence |
83df96d6 JS |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_DCMEMORY_H_ | |
13 | #define _WX_DCMEMORY_H_ | |
14 | ||
2b77c3fc RR |
15 | #include "wx/dc.h" |
16 | #include "wx/dcmemory.h" | |
17 | #include "wx/x11/dcclient.h" | |
83df96d6 | 18 | |
2b77c3fc | 19 | class WXDLLIMPEXP_CORE wxMemoryDCImpl : public wxWindowDCImpl |
83df96d6 | 20 | { |
83df96d6 | 21 | public: |
2b77c3fc RR |
22 | wxMemoryDCImpl( wxDC* owner ); |
23 | wxMemoryDCImpl( wxDC* owner, wxBitmap& bitmap); | |
24 | wxMemoryDCImpl( wxDC* owner, wxDC *dc ); | |
25 | virtual ~wxMemoryDCImpl(); | |
26 | ||
27 | virtual const wxBitmap& GetSelectedBitmap() const; | |
28 | virtual wxBitmap& GetSelectedBitmap(); | |
03647350 | 29 | |
3cd0b8c5 RR |
30 | // implementation |
31 | wxBitmap m_selected; | |
32 | ||
6f02a879 | 33 | protected: |
fea35690 VZ |
34 | virtual void DoGetSize( int *width, int *height ) const; |
35 | virtual void DoSelect(const wxBitmap& bitmap); | |
36 | ||
37 | private: | |
38 | void Init(); | |
6f02a879 | 39 | |
2b77c3fc RR |
40 | private: |
41 | DECLARE_CLASS(wxMemoryDCImpl) | |
83df96d6 JS |
42 | }; |
43 | ||
44 | #endif | |
45 | // _WX_DCMEMORY_H_ |