]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/dcclient.h
check that the version of __sync_sub_and_fetch that returns a value is supported...
[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 #include "wx/dcgraph.h"
17
18 //-----------------------------------------------------------------------------
19 // classes
20 //-----------------------------------------------------------------------------
21
22 class WXDLLIMPEXP_FWD_CORE wxPaintDC;
23 class WXDLLIMPEXP_FWD_CORE wxWindow;
24
25 class WXDLLEXPORT wxWindowDCImpl: public wxGCDCImpl
26 {
27 public:
28 wxWindowDCImpl( wxDC *owner );
29 wxWindowDCImpl( wxDC *owner, wxWindow *window );
30 virtual ~wxWindowDCImpl();
31
32 protected :
33 virtual void DoGetSize( int *width, int *height ) const;
34 virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const;
35
36 bool m_release;
37 int m_width;
38 int m_height;
39
40 private:
41 DECLARE_CLASS(wxWindowDCImpl)
42 DECLARE_NO_COPY_CLASS(wxWindowDCImpl)
43 };
44
45
46 class WXDLLEXPORT wxClientDCImpl: public wxWindowDCImpl
47 {
48 public:
49 wxClientDCImpl( wxDC *owner );
50 wxClientDCImpl( wxDC *owner, wxWindow *window );
51 virtual ~wxClientDCImpl();
52
53 private:
54 DECLARE_CLASS(wxClientDCImpl)
55 DECLARE_NO_COPY_CLASS(wxClientDCImpl)
56 };
57
58
59 class WXDLLEXPORT wxPaintDCImpl: public wxWindowDCImpl
60 {
61 public:
62 wxPaintDCImpl( wxDC *owner );
63 wxPaintDCImpl( wxDC *owner, wxWindow *win );
64 virtual ~wxPaintDCImpl();
65
66 protected:
67 DECLARE_CLASS(wxPaintDCImpl)
68 DECLARE_NO_COPY_CLASS(wxPaintDCImpl)
69 };
70
71
72 #endif
73 // _WX_DCCLIENT_H_