]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/classic/dcclient.h
wxID_ANY, wxDefaultSize, wxDefaultPosition, wxNOT_FOUND, true, false, tabs replacements.
[wxWidgets.git] / include / wx / mac / classic / 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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "dcclient.h"
17 #endif
18
19 #include "wx/dc.h"
20
21 //-----------------------------------------------------------------------------
22 // classes
23 //-----------------------------------------------------------------------------
24
25 class WXDLLEXPORT wxPaintDC;
26 class WXDLLEXPORT wxWindow;
27
28 class WXDLLEXPORT wxWindowDC: public wxDC
29 {
30 DECLARE_DYNAMIC_CLASS(wxWindowDC)
31
32 public:
33 wxWindowDC(void);
34
35 // Create a DC corresponding to a canvas
36 wxWindowDC(wxWindow *win);
37
38 ~wxWindowDC(void);
39 virtual void DoGetSize( int *width, int *height ) const;
40 protected :
41 wxWindow *m_window;
42 };
43
44
45 class WXDLLEXPORT wxClientDC: public wxWindowDC
46 {
47 DECLARE_DYNAMIC_CLASS(wxClientDC)
48
49 public:
50 wxClientDC(void);
51
52 // Create a DC corresponding to a canvas
53 wxClientDC(wxWindow *win);
54
55 ~wxClientDC(void);
56 virtual void DoGetSize( int *width, int *height ) const;
57 };
58
59 class WXDLLEXPORT wxPaintDC: public wxWindowDC
60 {
61 DECLARE_DYNAMIC_CLASS(wxPaintDC)
62
63 public:
64 wxPaintDC(void);
65
66 // Create a DC corresponding to a canvas
67 wxPaintDC(wxWindow *win);
68
69 ~wxPaintDC(void);
70 virtual void DoGetSize( int *width, int *height ) const;
71 };
72
73 #endif
74 // _WX_DCCLIENT_H_