]>
Commit | Line | Data |
---|---|---|
8cf73271 SC |
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 | |
65571936 | 9 | // Licence: wxWindows licence |
8cf73271 SC |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_DCCLIENT_H_ | |
13 | #define _WX_DCCLIENT_H_ | |
14 | ||
8cf73271 SC |
15 | #include "wx/dc.h" |
16 | ||
17 | //----------------------------------------------------------------------------- | |
18 | // classes | |
19 | //----------------------------------------------------------------------------- | |
20 | ||
21 | class WXDLLEXPORT wxPaintDC; | |
22 | class WXDLLEXPORT 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 | ||
d3c7fc99 | 34 | virtual ~wxWindowDC(void); |
53bc3863 | 35 | wxWindow *GetWindow() const { return m_window; } |
8cf73271 | 36 | protected : |
6f02a879 | 37 | virtual void DoGetSize( int *width, int *height ) const; |
8cf73271 | 38 | wxWindow *m_window; |
6ff41b16 SC |
39 | #if wxMAC_USE_CORE_GRAPHICS |
40 | bool m_release; | |
41 | int m_width; | |
42 | int m_height; | |
43 | #endif | |
8cf73271 SC |
44 | }; |
45 | ||
46 | ||
47 | class WXDLLEXPORT wxClientDC: public wxWindowDC | |
48 | { | |
49 | DECLARE_DYNAMIC_CLASS(wxClientDC) | |
50 | ||
51 | public: | |
52 | wxClientDC(void); | |
53 | ||
54 | // Create a DC corresponding to a canvas | |
55 | wxClientDC(wxWindow *win); | |
56 | ||
d3c7fc99 | 57 | virtual ~wxClientDC(void); |
6f02a879 VZ |
58 | |
59 | protected: | |
6ff41b16 | 60 | #if !wxMAC_USE_CORE_GRAPHICS |
8cf73271 | 61 | virtual void DoGetSize( int *width, int *height ) const; |
6ff41b16 | 62 | #endif |
8cf73271 SC |
63 | }; |
64 | ||
65 | class WXDLLEXPORT wxPaintDC: public wxWindowDC | |
66 | { | |
67 | DECLARE_DYNAMIC_CLASS(wxPaintDC) | |
68 | ||
69 | public: | |
70 | wxPaintDC(void); | |
71 | ||
72 | // Create a DC corresponding to a canvas | |
73 | wxPaintDC(wxWindow *win); | |
74 | ||
d3c7fc99 | 75 | virtual ~wxPaintDC(void); |
6f02a879 VZ |
76 | |
77 | protected: | |
6ff41b16 | 78 | #if !wxMAC_USE_CORE_GRAPHICS |
8cf73271 | 79 | virtual void DoGetSize( int *width, int *height ) const; |
6ff41b16 | 80 | #endif |
8cf73271 SC |
81 | }; |
82 | ||
83 | #endif | |
84 | // _WX_DCCLIENT_H_ |