]>
Commit | Line | Data |
---|---|---|
6762286d | 1 | ///////////////////////////////////////////////////////////////////////////// |
80fdcdb9 | 2 | // Name: wx/osx/dcclient.h |
6762286d SC |
3 | // Purpose: wxClientDC, wxPaintDC and wxWindowDC classes |
4 | // Author: Stefan Csomor | |
5 | // Modified by: | |
6 | // Created: 1998-01-01 | |
6762286d SC |
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) | |
c0c133e1 | 40 | wxDECLARE_NO_COPY_CLASS(wxWindowDCImpl); |
6762286d SC |
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) | |
c0c133e1 | 53 | wxDECLARE_NO_COPY_CLASS(wxClientDCImpl); |
6762286d SC |
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) | |
c0c133e1 | 66 | wxDECLARE_NO_COPY_CLASS(wxPaintDCImpl); |
6762286d SC |
67 | }; |
68 | ||
69 | ||
5c6eb3a8 | 70 | #endif |
6762286d | 71 | // _WX_DCCLIENT_H_ |