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