X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..bfa78c63b9045c2a594ca6f04dc26a70c21f5f42:/include/wx/dcclient.h diff --git a/include/wx/dcclient.h b/include/wx/dcclient.h index 795f9d0c8d..60e9fa57a6 100644 --- a/include/wx/dcclient.h +++ b/include/wx/dcclient.h @@ -1,13 +1,63 @@ -#ifndef __DCCLIENTH_BASE__ -#define __DCCLIENTH_BASE__ - -#if defined(__WINDOWS__) -#include "wx/msw/dcclient.h" -#elif defined(__MOTIF__) -#include "wx/xt/dcclient.h" -#elif defined(__GTK__) -#include "wx/gtk/dcclient.h" -#endif - -#endif - // __DCCLIENTH_BASE__ +///////////////////////////////////////////////////////////////////////////// +// Name: wx/dcclient.h +// Purpose: wxClientDC base header +// Author: Julian Smart +// Copyright: (c) Julian Smart +// RCS-ID: $Id$ +// Licence: wxWindows Licence +///////////////////////////////////////////////////////////////////////////// + +#ifndef _WX_DCCLIENT_H_BASE_ +#define _WX_DCCLIENT_H_BASE_ + +#include "wx/dc.h" + +//----------------------------------------------------------------------------- +// wxWindowDC +//----------------------------------------------------------------------------- + +class WXDLLIMPEXP_CORE wxWindowDC : public wxDC +{ +public: + wxWindowDC(wxWindow *win); + +protected: + wxWindowDC(wxDCImpl *impl) : wxDC(impl) { } + +private: + DECLARE_ABSTRACT_CLASS(wxWindowDC) +}; + +//----------------------------------------------------------------------------- +// wxClientDC +//----------------------------------------------------------------------------- + +class WXDLLIMPEXP_CORE wxClientDC : public wxWindowDC +{ +public: + wxClientDC(wxWindow *win); + +protected: + wxClientDC(wxDCImpl *impl) : wxWindowDC(impl) { } + +private: + DECLARE_ABSTRACT_CLASS(wxClientDC) +}; + +//----------------------------------------------------------------------------- +// wxPaintDC +//----------------------------------------------------------------------------- + +class WXDLLIMPEXP_CORE wxPaintDC : public wxClientDC +{ +public: + wxPaintDC(wxWindow *win); + +protected: + wxPaintDC(wxDCImpl *impl) : wxClientDC(impl) { } + +private: + DECLARE_ABSTRACT_CLASS(wxPaintDC) +}; + +#endif // _WX_DCCLIENT_H_BASE_