1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dfb/dcclient.h
3 // Purpose: wxWindowDCImpl, wxClientDCImpl and wxPaintDCImpl
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2006 REA Elektronik GmbH
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_DFB_DCCLIENT_H_
11 #define _WX_DFB_DCCLIENT_H_
13 #include "wx/dfb/dc.h"
15 class WXDLLIMPEXP_FWD_CORE wxWindow
;
17 //-----------------------------------------------------------------------------
19 //-----------------------------------------------------------------------------
21 class WXDLLIMPEXP_CORE wxWindowDCImpl
: public wxDFBDCImpl
24 wxWindowDCImpl(wxDC
*owner
) : wxDFBDCImpl(owner
), m_shouldFlip(false) { }
25 wxWindowDCImpl(wxDC
*owner
, wxWindow
*win
);
26 virtual ~wxWindowDCImpl();
29 // initializes the DC for painting on given window; if rect!=NULL, then
30 // for painting only on the given region of the window
31 void InitForWin(wxWindow
*win
, const wxRect
*rect
);
34 wxRect m_winRect
; // rectangle of the window being painted
36 bool m_shouldFlip
; // flip the surface when done?
38 friend class wxOverlayImpl
; // for m_shouldFlip;
40 DECLARE_DYNAMIC_CLASS(wxWindowDCImpl
)
41 wxDECLARE_NO_COPY_CLASS(wxWindowDCImpl
);
44 //-----------------------------------------------------------------------------
46 //-----------------------------------------------------------------------------
48 class WXDLLIMPEXP_CORE wxClientDCImpl
: public wxWindowDCImpl
51 wxClientDCImpl(wxDC
*owner
) : wxWindowDCImpl(owner
) { }
52 wxClientDCImpl(wxDC
*owner
, wxWindow
*win
);
54 DECLARE_DYNAMIC_CLASS(wxClientDCImpl
)
55 wxDECLARE_NO_COPY_CLASS(wxClientDCImpl
);
59 //-----------------------------------------------------------------------------
61 //-----------------------------------------------------------------------------
63 class WXDLLIMPEXP_CORE wxPaintDCImpl
: public wxClientDCImpl
66 wxPaintDCImpl(wxDC
*owner
) : wxClientDCImpl(owner
) { }
67 wxPaintDCImpl(wxDC
*owner
, wxWindow
*win
) : wxClientDCImpl(owner
, win
) { }
69 DECLARE_DYNAMIC_CLASS(wxPaintDCImpl
)
70 wxDECLARE_NO_COPY_CLASS(wxPaintDCImpl
);
73 #endif // _WX_DFB_DCCLIENT_H_