]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/osx/dcclient.h | |
3 | // Purpose: wxClientDC, wxPaintDC and wxWindowDC classes | |
4 | // Author: Stefan Csomor | |
5 | // Modified by: | |
6 | // Created: 1998-01-01 | |
7 | // Copyright: (c) Stefan Csomor | |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _WX_DCCLIENT_H_ | |
12 | #define _WX_DCCLIENT_H_ | |
13 | ||
14 | #include "wx/dc.h" | |
15 | #include "wx/dcgraph.h" | |
16 | ||
17 | //----------------------------------------------------------------------------- | |
18 | // classes | |
19 | //----------------------------------------------------------------------------- | |
20 | ||
21 | class WXDLLIMPEXP_FWD_CORE wxPaintDC; | |
22 | class WXDLLIMPEXP_FWD_CORE wxWindow; | |
23 | ||
24 | class WXDLLIMPEXP_CORE wxWindowDCImpl: public wxGCDCImpl | |
25 | { | |
26 | public: | |
27 | wxWindowDCImpl( wxDC *owner ); | |
28 | wxWindowDCImpl( wxDC *owner, wxWindow *window ); | |
29 | virtual ~wxWindowDCImpl(); | |
30 | ||
31 | virtual void DoGetSize( int *width, int *height ) const; | |
32 | virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const; | |
33 | ||
34 | protected: | |
35 | bool m_release; | |
36 | int m_width; | |
37 | int m_height; | |
38 | ||
39 | DECLARE_CLASS(wxWindowDCImpl) | |
40 | wxDECLARE_NO_COPY_CLASS(wxWindowDCImpl); | |
41 | }; | |
42 | ||
43 | ||
44 | class WXDLLIMPEXP_CORE wxClientDCImpl: public wxWindowDCImpl | |
45 | { | |
46 | public: | |
47 | wxClientDCImpl( wxDC *owner ); | |
48 | wxClientDCImpl( wxDC *owner, wxWindow *window ); | |
49 | virtual ~wxClientDCImpl(); | |
50 | ||
51 | private: | |
52 | DECLARE_CLASS(wxClientDCImpl) | |
53 | wxDECLARE_NO_COPY_CLASS(wxClientDCImpl); | |
54 | }; | |
55 | ||
56 | ||
57 | class WXDLLIMPEXP_CORE wxPaintDCImpl: public wxWindowDCImpl | |
58 | { | |
59 | public: | |
60 | wxPaintDCImpl( wxDC *owner ); | |
61 | wxPaintDCImpl( wxDC *owner, wxWindow *win ); | |
62 | virtual ~wxPaintDCImpl(); | |
63 | ||
64 | protected: | |
65 | DECLARE_CLASS(wxPaintDCImpl) | |
66 | wxDECLARE_NO_COPY_CLASS(wxPaintDCImpl); | |
67 | }; | |
68 | ||
69 | ||
70 | #endif | |
71 | // _WX_DCCLIENT_H_ |