1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dfb/dcclient.h
3 // Purpose: wxWindowDC, wxClientDC and wxPaintDC
4 // Author: Vaclav Slavik
7 // Copyright: (c) 2006 REA Elektronik GmbH
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_DFB_DCCLIENT_H_
12 #define _WX_DFB_DCCLIENT_H_
16 class WXDLLIMPEXP_FWD_CORE wxWindow
;
18 //-----------------------------------------------------------------------------
20 //-----------------------------------------------------------------------------
22 class WXDLLIMPEXP_CORE wxWindowDC
: public wxDC
25 wxWindowDC() : m_shouldFlip(false) {}
26 wxWindowDC(wxWindow
*win
);
27 virtual ~wxWindowDC();
29 virtual wxWindow
*GetWindow() const { return m_win
; }
32 // initializes the DC for painting on given window; if rect!=NULL, then
33 // for painting only on the given region of the window
34 void InitForWin(wxWindow
*win
, const wxRect
*rect
);
38 wxRect m_winRect
; // rectangle of the window being painted
40 bool m_shouldFlip
; // flip the surface when done?
42 friend class wxOverlayImpl
; // for m_shouldFlip;
44 DECLARE_DYNAMIC_CLASS(wxWindowDC
)
45 DECLARE_NO_COPY_CLASS(wxWindowDC
)
48 //-----------------------------------------------------------------------------
50 //-----------------------------------------------------------------------------
52 class WXDLLIMPEXP_CORE wxClientDC
: public wxWindowDC
56 wxClientDC(wxWindow
*win
);
58 DECLARE_DYNAMIC_CLASS(wxClientDC
)
59 DECLARE_NO_COPY_CLASS(wxClientDC
)
63 //-----------------------------------------------------------------------------
65 //-----------------------------------------------------------------------------
67 class WXDLLIMPEXP_CORE wxPaintDC
: public wxClientDC
71 wxPaintDC(wxWindow
*win
) : wxClientDC(win
) {}
73 DECLARE_DYNAMIC_CLASS(wxPaintDC
)
74 DECLARE_NO_COPY_CLASS(wxPaintDC
)
77 #endif // _WX_DFB_DCCLIENT_H_