]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/dcclient.cpp
No res-include for rpmspec wx24dsp
[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
20#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
21 #pragma implementation "dcclient.h"
22#endif
23
24// For compilers that support precompilation, includes "wx.h".
25#include "wx/wxprec.h"
26
27#ifdef __BORLANDC__
28 #pragma hdrstop
29#endif
30
31#include "wx/string.h"
32#include "wx/log.h"
33#include "wx/window.h"
34
35#include "wx/dcclient.h"
36
37// ----------------------------------------------------------------------------
38// array/list types
39// ----------------------------------------------------------------------------
40
41struct WXDLLEXPORT wxPaintDCInfo
42{
43 wxPaintDCInfo(wxWindow *win, wxDC *dc)
44 {
324eeecb
WS
45 handle = win->GetWinHandle();
46 hdc = dc->GetHDC();
47 count = 1;
ffecfa5a
JS
48 }
49
324eeecb
WS
50 WXWINHANDLE handle; // window for this DC
51 WXHDC hdc; // the DC handle
52 size_t count; // usage count
ffecfa5a
JS
53};
54
55#include "wx/arrimpl.cpp"
56
57WX_DEFINE_OBJARRAY(wxArrayDCInfo);
58
59// ----------------------------------------------------------------------------
60// macros
61// ----------------------------------------------------------------------------
62
63IMPLEMENT_DYNAMIC_CLASS(wxWindowDC, wxDC)
64IMPLEMENT_DYNAMIC_CLASS(wxClientDC, wxWindowDC)
65IMPLEMENT_DYNAMIC_CLASS(wxPaintDC, wxClientDC)
66IMPLEMENT_CLASS(wxPaintDCEx, wxPaintDC)
67
68// ----------------------------------------------------------------------------
69// global variables
70// ----------------------------------------------------------------------------
71
72#ifdef __WXDEBUG__
73 int g_isPainting = 0;
74#endif // __WXDEBUG__
75
76// ===========================================================================
77// implementation
78// ===========================================================================
79
80// ----------------------------------------------------------------------------
81// wxWindowDC
82// ----------------------------------------------------------------------------
83
84wxWindowDC::wxWindowDC()
85{
86}
87
88wxWindowDC::wxWindowDC(wxWindow *canvas)
89{
90}
91
92void wxWindowDC::InitDC()
93{
94}
95
96void wxWindowDC::DoGetSize(int *width, int *height) const
97{
98}
99
100// ----------------------------------------------------------------------------
101// wxClientDC
102// ----------------------------------------------------------------------------
103
104wxClientDC::wxClientDC()
105{
106}
107
108wxClientDC::wxClientDC(wxWindow *canvas)
109{
110}
111
112void wxClientDC::InitDC()
113{
114}
115
116wxClientDC::~wxClientDC()
117{
118}
119
120void wxClientDC::DoGetSize(int *width, int *height) const
121{
122}
123
124// ----------------------------------------------------------------------------
125// wxPaintDC
126// ----------------------------------------------------------------------------
127
128wxArrayDCInfo wxPaintDC::ms_cache;
129
130wxPaintDC::wxPaintDC()
131{
132}
133
134wxPaintDC::wxPaintDC(wxWindow *canvas)
135{
136}
137
138wxPaintDC::~wxPaintDC()
139{
140}
141
142wxPaintDCInfo *wxPaintDC::FindInCache(size_t *index) const
143{
144 return NULL;
145}
146
147WXHDC wxPaintDC::FindDCInCache(wxWindow* win)
148{
149 return 0;
150}
151
152/*
153 * wxPaintDCEx
154 */
e2731512 155
ffecfa5a
JS
156wxPaintDCEx::wxPaintDCEx(wxWindow *canvas, WXHDC dc) : saveState(0)
157{
158}
159
160wxPaintDCEx::~wxPaintDCEx()
161{
162}
163