]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/dcclient.h
update button style to include BS_MULTILINE when a multiline label is set
[wxWidgets.git] / include / wx / mac / carbon / dcclient.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: dcclient.h
3 // Purpose: wxClientDC, wxPaintDC and wxWindowDC classes
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 1998-01-01
7 // RCS-ID: $Id$
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_DCCLIENT_H_
13 #define _WX_DCCLIENT_H_
14
15 #include "wx/dc.h"
16
17 //-----------------------------------------------------------------------------
18 // classes
19 //-----------------------------------------------------------------------------
20
21 class WXDLLIMPEXP_FWD_CORE wxPaintDC;
22 class WXDLLIMPEXP_FWD_CORE wxWindow;
23
24 class WXDLLEXPORT wxWindowDC: public wxDC
25 {
26 DECLARE_DYNAMIC_CLASS(wxWindowDC)
27
28 public:
29 wxWindowDC(void);
30
31 // Create a DC corresponding to a canvas
32 wxWindowDC(wxWindow *win);
33
34 virtual ~wxWindowDC(void);
35 wxWindow *GetWindow() const { return m_window; }
36 protected :
37 virtual void DoGetSize( int *width, int *height ) const;
38 virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const;
39 wxWindow *m_window;
40 #if wxMAC_USE_CORE_GRAPHICS
41 bool m_release;
42 int m_width;
43 int m_height;
44 #endif
45 };
46
47
48 class WXDLLEXPORT wxClientDC: public wxWindowDC
49 {
50 DECLARE_DYNAMIC_CLASS(wxClientDC)
51
52 public:
53 wxClientDC(void);
54
55 // Create a DC corresponding to a canvas
56 wxClientDC(wxWindow *win);
57
58 virtual ~wxClientDC(void);
59
60 protected:
61 #if !wxMAC_USE_CORE_GRAPHICS
62 virtual void DoGetSize( int *width, int *height ) const;
63 #endif
64 };
65
66 class WXDLLEXPORT wxPaintDC: public wxWindowDC
67 {
68 DECLARE_DYNAMIC_CLASS(wxPaintDC)
69
70 public:
71 wxPaintDC(void);
72
73 // Create a DC corresponding to a canvas
74 wxPaintDC(wxWindow *win);
75
76 virtual ~wxPaintDC(void);
77
78 protected:
79 #if !wxMAC_USE_CORE_GRAPHICS
80 virtual void DoGetSize( int *width, int *height ) const;
81 #endif
82 };
83
84 #endif
85 // _WX_DCCLIENT_H_