]> git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/dcmemory.h
Add wxActivateEvent::GetActivationReason().
[wxWidgets.git] / include / wx / motif / dcmemory.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/dcmemory.h
3 // Purpose: wxMemoryDCImpl 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/motif/dcclient.h"
15
16 class WXDLLIMPEXP_CORE wxMemoryDCImpl : public wxWindowDCImpl
17 {
18 public:
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;
31 virtual void DoSelect(const wxBitmap& bitmap);
32
33 private:
34 friend class wxPaintDC;
35
36 void Init();
37
38 wxBitmap m_bitmap;
39
40 DECLARE_DYNAMIC_CLASS(wxMemoryDCImpl)
41 };
42
43 #endif
44 // _WX_DCMEMORY_H_