]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/palmos/dcclient.cpp
Fix after removal of PRIOR/NEXT in common headers.
[wxWidgets.git] / src / palmos / dcclient.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/palmos/dcclient.cpp
3// Purpose: wxClientDC class
4// Author: William Osborne - minimal working wxPalmOS port
5// Modified by:
6// Created: 10/13/04
7// RCS-ID: $Id$
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12// ===========================================================================
13// declarations
14// ===========================================================================
15
16// ----------------------------------------------------------------------------
17// headers
18// ----------------------------------------------------------------------------
19
20// For compilers that support precompilation, includes "wx.h".
21#include "wx/wxprec.h"
22
23#ifdef __BORLANDC__
24 #pragma hdrstop
25#endif
26
27#include "wx/string.h"
28#include "wx/log.h"
29#include "wx/window.h"
30
31#include "wx/dcclient.h"
32
33// ----------------------------------------------------------------------------
34// array/list types
35// ----------------------------------------------------------------------------
36
37struct WXDLLEXPORT wxPaintDCInfo
38{
39 wxPaintDCInfo(wxWindow *win, wxDC *dc)
40 {
41 handle = win->GetWinHandle();
42 hdc = dc->GetHDC();
43 count = 1;
44 }
45
46 WXWINHANDLE handle; // window for this DC
47 WXHDC hdc; // the DC handle
48 size_t count; // usage count
49};
50
51#include "wx/arrimpl.cpp"
52
53WX_DEFINE_OBJARRAY(wxArrayDCInfo);
54
55// ----------------------------------------------------------------------------
56// macros
57// ----------------------------------------------------------------------------
58
59IMPLEMENT_DYNAMIC_CLASS(wxWindowDC, wxDC)
60IMPLEMENT_DYNAMIC_CLASS(wxClientDC, wxWindowDC)
61IMPLEMENT_DYNAMIC_CLASS(wxPaintDC, wxClientDC)
62IMPLEMENT_CLASS(wxPaintDCEx, wxPaintDC)
63
64// ----------------------------------------------------------------------------
65// global variables
66// ----------------------------------------------------------------------------
67
68#ifdef __WXDEBUG__
69 int g_isPainting = 0;
70#endif // __WXDEBUG__
71
72// ===========================================================================
73// implementation
74// ===========================================================================
75
76// ----------------------------------------------------------------------------
77// wxWindowDC
78// ----------------------------------------------------------------------------
79
80wxWindowDC::wxWindowDC()
81{
82}
83
84wxWindowDC::wxWindowDC(wxWindow *canvas)
85{
86}
87
88void wxWindowDC::InitDC()
89{
90}
91
92void wxWindowDC::DoGetSize(int *width, int *height) const
93{
94}
95
96// ----------------------------------------------------------------------------
97// wxClientDC
98// ----------------------------------------------------------------------------
99
100wxClientDC::wxClientDC()
101{
102}
103
104wxClientDC::wxClientDC(wxWindow *canvas)
105{
106}
107
108void wxClientDC::InitDC()
109{
110}
111
112wxClientDC::~wxClientDC()
113{
114}
115
116void wxClientDC::DoGetSize(int *width, int *height) const
117{
118}
119
120// ----------------------------------------------------------------------------
121// wxPaintDC
122// ----------------------------------------------------------------------------
123
124wxArrayDCInfo wxPaintDC::ms_cache;
125
126wxPaintDC::wxPaintDC()
127{
128}
129
130wxPaintDC::wxPaintDC(wxWindow *canvas)
131{
132}
133
134wxPaintDC::~wxPaintDC()
135{
136}
137
138wxPaintDCInfo *wxPaintDC::FindInCache(size_t *index) const
139{
140 return NULL;
141}
142
143WXHDC wxPaintDC::FindDCInCache(wxWindow* win)
144{
145 return 0;
146}
147
148/*
149 * wxPaintDCEx
150 */
151
152wxPaintDCEx::wxPaintDCEx(wxWindow *canvas, WXHDC dc) : saveState(0)
153{
154}
155
156wxPaintDCEx::~wxPaintDCEx()
157{
158}
159