]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/dcmemory.h
added OnSize() to wxNotebook which forwards size events to the pages: fixes
[wxWidgets.git] / include / wx / gtk / dcmemory.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: dcmemory.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Created: 01/02/97
6 // RCS-ID: $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 friend wxPaintDC;
45 wxBitmap m_selected;
46 };
47
48 #endif
49 // __GTKDCMEMORYH__
50