1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxClientDC class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart and Markus Holzem
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_DCCLIENT_H_
13 #define _WX_DCCLIENT_H_
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
20 #pragma interface "dcclient.h"
24 #include "wx/dynarray.h"
26 // ----------------------------------------------------------------------------
28 // ----------------------------------------------------------------------------
30 // this one if used by wxPaintDC only
31 struct WXDLLEXPORT wxPaintDCInfo
;
32 WX_DECLARE_OBJARRAY(wxPaintDCInfo
, wxArrayDCInfo
);
34 // ----------------------------------------------------------------------------
36 // ----------------------------------------------------------------------------
38 class WXDLLEXPORT wxWindowDC
: public wxDC
40 DECLARE_DYNAMIC_CLASS(wxWindowDC
)
45 // Create a DC corresponding to the whole window
46 wxWindowDC(wxWindow
*win
);
48 virtual ~wxWindowDC();
51 class WXDLLEXPORT wxClientDC
: public wxWindowDC
53 DECLARE_DYNAMIC_CLASS(wxClientDC
)
58 // Create a DC corresponding to the client area of the window
59 wxClientDC(wxWindow
*win
);
61 virtual ~wxClientDC();
64 class WXDLLEXPORT wxPaintDC
: public wxWindowDC
66 DECLARE_DYNAMIC_CLASS(wxPaintDC
)
71 // Create a DC corresponding for painting the window in OnPaint()
72 wxPaintDC(wxWindow
*win
);
77 static wxArrayDCInfo ms_cache
;
79 // find the entry for this DC in the cache (keyed by the window)
80 wxPaintDCInfo
*FindInCache(size_t *index
= NULL
) const;