]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/dcclient.h
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 WXDLLEXPORT wxPaintDC
;
22 class WXDLLEXPORT 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;
39 #if wxMAC_USE_CORE_GRAPHICS
47 class WXDLLEXPORT wxClientDC
: public wxWindowDC
49 DECLARE_DYNAMIC_CLASS(wxClientDC
)
54 // Create a DC corresponding to a canvas
55 wxClientDC(wxWindow
*win
);
57 virtual ~wxClientDC(void);
60 #if !wxMAC_USE_CORE_GRAPHICS
61 virtual void DoGetSize( int *width
, int *height
) const;
65 class WXDLLEXPORT wxPaintDC
: public wxWindowDC
67 DECLARE_DYNAMIC_CLASS(wxPaintDC
)
72 // Create a DC corresponding to a canvas
73 wxPaintDC(wxWindow
*win
);
75 virtual ~wxPaintDC(void);
78 #if !wxMAC_USE_CORE_GRAPHICS
79 virtual void DoGetSize( int *width
, int *height
) const;