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