]> git.saurik.com Git - wxWidgets.git/blob - include/wx/x11/dcmemory.h
Convert wxFSW_EVENT_{WARNING,ERROR} to string correctly.
[wxWidgets.git] / include / wx / x11 / dcmemory.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/x11/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
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_DCMEMORY_H_
13 #define _WX_DCMEMORY_H_
14
15 #include "wx/dc.h"
16 #include "wx/dcmemory.h"
17 #include "wx/x11/dcclient.h"
18
19 class WXDLLIMPEXP_CORE wxMemoryDCImpl : public wxWindowDCImpl
20 {
21 public:
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();
29
30 // implementation
31 wxBitmap m_selected;
32
33 protected:
34 virtual void DoGetSize( int *width, int *height ) const;
35 virtual void DoSelect(const wxBitmap& bitmap);
36
37 private:
38 void Init();
39
40 private:
41 DECLARE_CLASS(wxMemoryDCImpl)
42 };
43
44 #endif
45 // _WX_DCMEMORY_H_