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