]>
Commit | Line | Data |
---|---|---|
c801d85f KB |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: dcmemory.h | |
3 | // Purpose: | |
4 | // Author: Robert Roebling | |
5 | // Created: 01/02/97 | |
6 | // Id: | |
7 | // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem | |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | ||
12 | #ifndef __GTKDCMEMORYH__ | |
13 | #define __GTKDCMEMORYH__ | |
14 | ||
15 | #ifdef __GNUG__ | |
16 | #pragma interface | |
17 | #endif | |
18 | ||
19 | #include "wx/defs.h" | |
20 | #include "wx/dcclient.h" | |
21 | ||
22 | //----------------------------------------------------------------------------- | |
23 | // classes | |
24 | //----------------------------------------------------------------------------- | |
25 | ||
26 | class wxMemoryDC; | |
27 | ||
28 | //----------------------------------------------------------------------------- | |
29 | // wxMemoryDC | |
30 | //----------------------------------------------------------------------------- | |
31 | ||
32 | class WXDLLEXPORT wxMemoryDC: public wxPaintDC | |
33 | { | |
34 | DECLARE_DYNAMIC_CLASS(wxMemoryDC) | |
35 | ||
36 | public: | |
37 | wxMemoryDC(void); | |
38 | wxMemoryDC( wxDC *dc ); // Create compatible DC | |
39 | ~wxMemoryDC(void); | |
40 | virtual void SelectObject( const wxBitmap& bitmap ); | |
41 | void GetSize( int *width, int *height ); | |
42 | ||
43 | private: | |
44 | wxBitmap m_selected; | |
45 | }; | |
46 | ||
47 | #endif | |
48 | // __GTKDCMEMORYH__ | |
49 |