1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxClientDC, wxPaintDC and wxWindowDC classes
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_DCCLIENT_H_
13 #define _WX_DCCLIENT_H_
17 //-----------------------------------------------------------------------------
19 //-----------------------------------------------------------------------------
21 class WXDLLIMPEXP_FWD_CORE wxPaintDC
;
22 class WXDLLIMPEXP_FWD_CORE wxWindow
;
24 class WXDLLEXPORT wxWindowDC
: public wxDC
26 DECLARE_DYNAMIC_CLASS(wxWindowDC
)
31 // Create a DC corresponding to a canvas
32 wxWindowDC(wxWindow
*win
);
34 virtual ~wxWindowDC(void);
35 wxWindow
*GetWindow() const { return m_window
; }
37 virtual void DoGetSize( int *width
, int *height
) const;
38 virtual wxBitmap
DoGetAsBitmap(const wxRect
*subrect
) const;
40 #if wxMAC_USE_CORE_GRAPHICS
48 class WXDLLEXPORT wxClientDC
: public wxWindowDC
50 DECLARE_DYNAMIC_CLASS(wxClientDC
)
55 // Create a DC corresponding to a canvas
56 wxClientDC(wxWindow
*win
);
58 virtual ~wxClientDC(void);
61 #if !wxMAC_USE_CORE_GRAPHICS
62 virtual void DoGetSize( int *width
, int *height
) const;
66 class WXDLLEXPORT wxPaintDC
: public wxWindowDC
68 DECLARE_DYNAMIC_CLASS(wxPaintDC
)
73 // Create a DC corresponding to a canvas
74 wxPaintDC(wxWindow
*win
);
76 virtual ~wxPaintDC(void);
79 #if !wxMAC_USE_CORE_GRAPHICS
80 virtual void DoGetSize( int *width
, int *height
) const;