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