]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/os2/dcclient.h
Fixed the deleteion of VisualAge stuff
[wxWidgets.git] / include / wx / os2 / dcclient.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: dcclient.h
3// Purpose: wxClientDC class
4// Author: David Webster
5// Modified by:
6// Created: 09/12/99
7// RCS-ID: $Id$
8// Copyright: (c) David Webster
9// Licence: wxWindows license
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_DCCLIENT_H_
13#define _WX_DCCLIENT_H_
14
15// ----------------------------------------------------------------------------
16// headers
17// ----------------------------------------------------------------------------
18
19#include "wx/dc.h"
20#include "wx/dynarray.h"
21
22// ----------------------------------------------------------------------------
23// array types
24// ----------------------------------------------------------------------------
25
26// this one if used by wxPaintDC only
27struct WXDLLEXPORT wxPaintDCInfo;
28
29WX_DECLARE_OBJARRAY(wxPaintDCInfo, wxArrayDCInfo);
30
31// ----------------------------------------------------------------------------
32// DC classes
33// ----------------------------------------------------------------------------
34
35class WXDLLEXPORT wxWindowDC : public wxDC
36{
37public:
38 wxWindowDC();
39
40 // Create a DC corresponding to the whole window
41 wxWindowDC(wxWindow* pWin);
42
43protected:
44 void InitDC(void);
45
46private:
47 SIZEL m_PageSize;
48 DECLARE_DYNAMIC_CLASS(wxWindowDC)
49}; // end of CLASS wxWindowDC
50
51class WXDLLEXPORT wxClientDC : public wxWindowDC
52{
53public:
54 wxClientDC();
55
56 // Create a DC corresponding to the client area of the window
57 wxClientDC(wxWindow *win);
58
59private:
60 DECLARE_DYNAMIC_CLASS(wxClientDC)
61}; // end of CLASS wxClientDC
62
63class WXDLLEXPORT wxPaintDC : public wxWindowDC
64{
65public:
66 wxPaintDC();
67
68 // Create a DC corresponding for painting the window in OnPaint()
69 wxPaintDC(wxWindow* pWin);
70
71 virtual ~wxPaintDC();
72
73 // find the entry for this DC in the cache (keyed by the window)
74 static WXHDC FindDCInCache(wxWindow* pWin);
75
76protected:
77 static wxArrayDCInfo ms_cache;
78
79 // find the entry for this DC in the cache (keyed by the window)
80 wxPaintDCInfo* FindInCache(size_t* pIndex = NULL) const;
81private:
82 DECLARE_DYNAMIC_CLASS(wxPaintDC)
83}; // end of wxPaintDC
84
85#endif
86 // _WX_DCCLIENT_H_