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