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_CORE wxWindow
;
18 //-----------------------------------------------------------------------------
20 //-----------------------------------------------------------------------------
22 class WXDLLIMPEXP_CORE wxWindowDC
: public wxDC
25 wxWindowDC() : m_shouldFlip(false) {}
26 wxWindowDC(wxWindow
*win
);
27 virtual ~wxWindowDC();
30 // initializes the DC for painting on given window; if rect!=NULL, then
31 // for painting only on the given region of the window
32 void InitForWin(wxWindow
*win
, const wxRect
*rect
);
35 bool m_shouldFlip
; // flip the surface when done?
37 DECLARE_DYNAMIC_CLASS(wxWindowDC
)
38 DECLARE_NO_COPY_CLASS(wxWindowDC
)
41 //-----------------------------------------------------------------------------
43 //-----------------------------------------------------------------------------
45 class WXDLLIMPEXP_CORE wxClientDC
: public wxWindowDC
49 wxClientDC(wxWindow
*win
);
51 DECLARE_DYNAMIC_CLASS(wxClientDC
)
52 DECLARE_NO_COPY_CLASS(wxClientDC
)
56 //-----------------------------------------------------------------------------
58 //-----------------------------------------------------------------------------
60 class WXDLLIMPEXP_CORE wxPaintDC
: public wxClientDC
64 wxPaintDC(wxWindow
*win
) : wxClientDC(win
) {}
66 DECLARE_DYNAMIC_CLASS(wxPaintDC
)
67 DECLARE_NO_COPY_CLASS(wxPaintDC
)
70 #endif // _WX_DFB_DCCLIENT_H_