]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dfb/dcclient.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / dfb / dcclient.h
CommitLineData
b3c86150
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/dfb/dcclient.h
4a624f6e 3// Purpose: wxWindowDCImpl, wxClientDCImpl and wxPaintDCImpl
b3c86150
VS
4// Author: Vaclav Slavik
5// Created: 2006-08-10
b3c86150
VS
6// Copyright: (c) 2006 REA Elektronik GmbH
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_DFB_DCCLIENT_H_
11#define _WX_DFB_DCCLIENT_H_
12
4a624f6e 13#include "wx/dfb/dc.h"
b3c86150 14
b5dbe15d 15class WXDLLIMPEXP_FWD_CORE wxWindow;
b3c86150
VS
16
17//-----------------------------------------------------------------------------
4a624f6e 18// wxWindowDCImpl
b3c86150
VS
19//-----------------------------------------------------------------------------
20
4a624f6e 21class WXDLLIMPEXP_CORE wxWindowDCImpl : public wxDFBDCImpl
b3c86150
VS
22{
23public:
4a624f6e
VZ
24 wxWindowDCImpl(wxDC *owner) : wxDFBDCImpl(owner), m_shouldFlip(false) { }
25 wxWindowDCImpl(wxDC *owner, wxWindow *win);
26 virtual ~wxWindowDCImpl();
b3c86150
VS
27
28protected:
716af436
VS
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);
b3c86150 32
20671963 33private:
30c841c8
VS
34 wxRect m_winRect; // rectangle of the window being painted
35
4dc9a81d 36 bool m_shouldFlip; // flip the surface when done?
20671963 37
30c841c8
VS
38 friend class wxOverlayImpl; // for m_shouldFlip;
39
4a624f6e 40 DECLARE_DYNAMIC_CLASS(wxWindowDCImpl)
c0c133e1 41 wxDECLARE_NO_COPY_CLASS(wxWindowDCImpl);
b3c86150
VS
42};
43
b3c86150 44//-----------------------------------------------------------------------------
4a624f6e 45// wxClientDCImpl
b3c86150
VS
46//-----------------------------------------------------------------------------
47
4a624f6e 48class WXDLLIMPEXP_CORE wxClientDCImpl : public wxWindowDCImpl
b3c86150
VS
49{
50public:
4a624f6e
VZ
51 wxClientDCImpl(wxDC *owner) : wxWindowDCImpl(owner) { }
52 wxClientDCImpl(wxDC *owner, wxWindow *win);
b3c86150 53
4a624f6e 54 DECLARE_DYNAMIC_CLASS(wxClientDCImpl)
c0c133e1 55 wxDECLARE_NO_COPY_CLASS(wxClientDCImpl);
b3c86150
VS
56};
57
58
59//-----------------------------------------------------------------------------
4a624f6e 60// wxPaintDCImpl
b3c86150
VS
61//-----------------------------------------------------------------------------
62
4a624f6e 63class WXDLLIMPEXP_CORE wxPaintDCImpl : public wxClientDCImpl
b3c86150
VS
64{
65public:
4a624f6e
VZ
66 wxPaintDCImpl(wxDC *owner) : wxClientDCImpl(owner) { }
67 wxPaintDCImpl(wxDC *owner, wxWindow *win) : wxClientDCImpl(owner, win) { }
b3c86150 68
4a624f6e 69 DECLARE_DYNAMIC_CLASS(wxPaintDCImpl)
c0c133e1 70 wxDECLARE_NO_COPY_CLASS(wxPaintDCImpl);
b3c86150
VS
71};
72
73#endif // _WX_DFB_DCCLIENT_H_