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