]> git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/dcmemory.h
By default, align renderers as column header under GTK+, too.
[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 // 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/motif/dcclient.h"
16
17 class WXDLLIMPEXP_CORE wxMemoryDCImpl : public wxWindowDCImpl
18 {
19 public:
20 wxMemoryDCImpl(wxMemoryDC *owner) : wxWindowDCImpl(owner) { Init(); }
21 wxMemoryDCImpl(wxMemoryDC *owner, wxBitmap& bitmap)
22 : wxWindowDCImpl(owner)
23 {
24 Init();
25 DoSelect(bitmap);
26 }
27
28 wxMemoryDCImpl(wxMemoryDC *owner, wxDC *dc);
29 virtual ~wxMemoryDCImpl();
30
31 virtual void DoGetSize( int *width, int *height ) const;
32 virtual void DoSelect(const wxBitmap& bitmap);
33
34 private:
35 friend class wxPaintDC;
36
37 void Init();
38
39 wxBitmap m_bitmap;
40
41 DECLARE_DYNAMIC_CLASS(wxMemoryDCImpl)
42 };
43
44 #endif
45 // _WX_DCMEMORY_H_