1. wxApp::ProcessPendingEvents() is now common, added appcmn.cpp and
[wxWidgets.git] / include / wx / dc.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: dc.h
3 // Purpose: wxDC class
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 05/25/99
7 // RCS-ID: $Id$
8 // Copyright: (c) wxWindows team
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_DC_H_BASE_
13 #define _WX_DC_H_BASE_
14
15 #ifdef __GNUG__
16 #pragma interface "dcbase.h"
17 #endif
18
19 // ----------------------------------------------------------------------------
20 // headers which we must include here
21 // ----------------------------------------------------------------------------
22
23 #include "wx/object.h" // the base class
24
25 #include "wx/cursor.h" // we have member variables of these classes
26 #include "wx/font.h" // so we can't do without them
27 #include "wx/colour.h"
28 #include "wx/brush.h"
29 #include "wx/pen.h"
30 #include "wx/palette.h"
31
32 #include "wx/list.h" // we use wxList in inline functions
33
34 // ---------------------------------------------------------------------------
35 // global variables
36 // ---------------------------------------------------------------------------
37
38 WXDLLEXPORT_DATA(extern int) wxPageNumber;
39
40 // ---------------------------------------------------------------------------
41 // wxDC is the device context - object on which any drawing is done
42 // ---------------------------------------------------------------------------
43
44 class WXDLLEXPORT wxDCBase : public wxObject
45 {
46 DECLARE_ABSTRACT_CLASS(wxDCBase)
47
48 public:
49 wxDCBase()
50 {
51 m_clipping = FALSE;
52 m_ok = TRUE;
53
54 m_minX = m_minY = m_maxX = m_maxY = 0;
55
56 m_signX = m_signY = 1;
57
58 m_logicalOriginX = m_logicalOriginY =
59 m_deviceOriginX = m_deviceOriginY = 0;
60
61 m_logicalScaleX = m_logicalScaleY =
62 m_userScaleX = m_userScaleY =
63 m_scaleX = m_scaleY = 1.0;
64
65 m_logicalFunction = -1;
66
67 m_backgroundMode = wxTRANSPARENT;
68
69 m_mappingMode = wxMM_TEXT;
70
71 m_backgroundBrush = *wxTRANSPARENT_BRUSH;
72
73 m_textForegroundColour = *wxBLACK;
74 m_textBackgroundColour = *wxWHITE;
75
76 m_colour = wxColourDisplay();
77 }
78
79 ~wxDCBase() { }
80
81 virtual void BeginDrawing() { }
82 virtual void EndDrawing() { }
83
84 // graphic primitives
85 // ------------------
86
87 void FloodFill(wxCoord x, wxCoord y, const wxColour& col,
88 int style = wxFLOOD_SURFACE)
89 { DoFloodFill(x, y, col, style); }
90 void FloodFill(const wxPoint& pt, const wxColour& col,
91 int style = wxFLOOD_SURFACE)
92 { DoFloodFill(pt.x, pt.y, col, style); }
93
94 bool GetPixel(wxCoord x, wxCoord y, wxColour *col) const
95 { return DoGetPixel(x, y, col); }
96 bool GetPixel(const wxPoint& pt, wxColour *col) const
97 { return DoGetPixel(pt.x, pt.y, col); }
98
99 void DrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2)
100 { DoDrawLine(x1, y1, x2, y2); }
101 void DrawLine(const wxPoint& pt1, const wxPoint& pt2)
102 { DoDrawLine(pt1.x, pt1.y, pt2.x, pt2.y); }
103
104 void CrossHair(wxCoord x, wxCoord y)
105 { DoCrossHair(x, y); }
106 void CrossHair(const wxPoint& pt)
107 { DoCrossHair(pt.x, pt.y); }
108
109 void DrawArc(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2,
110 wxCoord xc, wxCoord yc)
111 { DoDrawArc(x1, y1, x2, y2, xc, yc); }
112 void DrawArc(const wxPoint& pt1, const wxPoint& pt2, const wxPoint& centre)
113 { DoDrawArc(pt1.x, pt1.y, pt2.x, pt2.y, centre.x, centre.y); }
114
115 void DrawEllipticArc(wxCoord x, wxCoord y, wxCoord w, wxCoord h,
116 double sa, double ea)
117 { DoDrawEllipticArc(x, y, w, h, sa, ea); }
118 void DrawEllipticArc(const wxPoint& pt, const wxSize& sz,
119 double sa, double ea)
120 { DoDrawEllipticArc(pt.x, pt.y, sz.x, sz.y, sa, ea); }
121
122 void DrawPoint(wxCoord x, wxCoord y)
123 { DoDrawPoint(x, y); }
124 void DrawPoint(const wxPoint& pt)
125 { DoDrawPoint(pt.x, pt.y); }
126
127 void DrawLines(int n, wxPoint points[],
128 wxCoord xoffset = 0, wxCoord yoffset = 0)
129 { DoDrawLines(n, points, xoffset, yoffset); }
130 void DrawLines(const wxList *list,
131 wxCoord xoffset = 0, wxCoord yoffset = 0);
132
133 void DrawPolygon(int n, wxPoint points[],
134 wxCoord xoffset = 0, wxCoord yoffset = 0,
135 int fillStyle = wxODDEVEN_RULE)
136 { DoDrawPolygon(n, points, xoffset, yoffset, fillStyle); }
137
138 void DrawPolygon(const wxList *list,
139 wxCoord xoffset = 0, wxCoord yoffset = 0,
140 int fillStyle = wxODDEVEN_RULE);
141
142 void DrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
143 { DoDrawRectangle(x, y, width, height); }
144 void DrawRectangle(const wxPoint& pt, const wxSize& sz)
145 { DoDrawRectangle(pt.x, pt.y, sz.x, sz.y); }
146 void DrawRectangle(const wxRect& rect)
147 { DoDrawRectangle(rect.x, rect.y, rect.width, rect.height); }
148
149 void DrawRoundedRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height,
150 double radius)
151 { DoDrawRoundedRectangle(x, y, width, height, radius); }
152 void DrawRoundedRectangle(const wxPoint& pt, const wxSize& sz,
153 double radius)
154 { DoDrawRoundedRectangle(pt.x, pt.y, sz.x, sz.y, radius); }
155 void DrawRoundedRectangle(const wxRect& r, double radius)
156 { DoDrawRoundedRectangle(r.x, r.y, r.width, r.height, radius); }
157
158 void DrawCircle(wxCoord x, wxCoord y, wxCoord radius)
159 { DoDrawEllipse(x - radius, y - radius, 2*radius, 2*radius); }
160 void DrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
161 { DoDrawEllipse(x, y, width, height); }
162 void DrawEllipse(const wxPoint& pt, const wxSize& sz)
163 { DoDrawEllipse(pt.x, pt.y, sz.x, sz.y); }
164 void DrawEllipse(const wxRect& rect)
165 { DoDrawEllipse(rect.x, rect.y, rect.width, rect.height); }
166
167 void DrawIcon(const wxIcon& icon, wxCoord x, wxCoord y)
168 { DoDrawIcon(icon, x, y); }
169 void DrawIcon(const wxIcon& icon, const wxPoint& pt)
170 { DoDrawIcon(icon, pt.x, pt.y); }
171
172 void DrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y,
173 bool useMask = FALSE)
174 { DoDrawBitmap(bmp, x, y, useMask); }
175 void DrawBitmap(const wxBitmap &bmp, const wxPoint& pt,
176 bool useMask = FALSE)
177 { DoDrawBitmap(bmp, pt.x, pt.y, useMask); }
178
179 void DrawText(const wxString& text, wxCoord x, wxCoord y)
180 { DoDrawText(text, x, y); }
181 void DrawText(const wxString& text, const wxPoint& pt)
182 { DoDrawText(text, pt.x, pt.y); }
183
184 bool Blit(wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height,
185 wxDC *source, wxCoord xsrc, wxCoord ysrc,
186 int rop = wxCOPY, bool useMask = FALSE)
187 {
188 return DoBlit(xdest, ydest, width, height,
189 source, xsrc, ysrc, rop, useMask);
190 }
191 bool Blit(const wxPoint& destPt, const wxSize& sz,
192 wxDC *source, const wxPoint& srcPt,
193 int rop = wxCOPY, bool useMask = FALSE)
194 {
195 return DoBlit(destPt.x, destPt.y, sz.x, sz.y,
196 source, srcPt.x, srcPt.y, rop, useMask);
197 }
198
199 #if wxUSE_SPLINES
200 // TODO: this API needs fixing (wxPointList, why (!const) "wxList *"?)
201 void DrawSpline(wxCoord x1, wxCoord y1,
202 wxCoord x2, wxCoord y2,
203 wxCoord x3, wxCoord y3);
204 void DrawSpline(int n, wxPoint points[]);
205
206 void DrawSpline(wxList *points) { DoDrawSpline(points); }
207 #endif // wxUSE_SPLINES
208
209 // global DC operations
210 // --------------------
211
212 virtual void Clear() = 0;
213
214 virtual bool StartDoc(const wxString& WXUNUSED(message)) { return TRUE; }
215 virtual void EndDoc() { }
216
217 virtual void StartPage() { }
218 virtual void EndPage() { }
219
220 // set objects to use for drawing
221 // ------------------------------
222
223 virtual void SetFont(const wxFont& font) = 0;
224 virtual void SetPen(const wxPen& pen) = 0;
225 virtual void SetBrush(const wxBrush& brush) = 0;
226 virtual void SetBackground(const wxBrush& brush) = 0;
227 virtual void SetBackgroundMode(int mode) = 0;
228 virtual void SetPalette(const wxPalette& palette) = 0;
229
230 // clipping region
231 // ---------------
232
233 void SetClippingRegion(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
234 { DoSetClippingRegion(x, y, width, height); }
235 void SetClippingRegion(const wxPoint& pt, const wxSize& sz)
236 { DoSetClippingRegion(pt.x, pt.y, sz.x, sz.y); }
237 void SetClippingRegion(const wxRect& rect)
238 { DoSetClippingRegion(rect.x, rect.y, rect.width, rect.height); }
239 void SetClippingRegion(const wxRegion& region)
240 { DoSetClippingRegionAsRegion(region); }
241
242 virtual void DestroyClippingRegion() = 0;
243
244 void GetClippingBox(wxCoord *x, wxCoord *y, wxCoord *w, wxCoord *h) const
245 { DoGetClippingBox(x, y, w, h); }
246 void GetClippingBox(wxRect& rect) const
247 { DoGetClippingBox(&rect.x, &rect.y, &rect.width, &rect.height); }
248
249 // text extent
250 // -----------
251
252 virtual wxCoord GetCharHeight() const = 0;
253 virtual wxCoord GetCharWidth() const = 0;
254 void GetTextExtent(const wxString& string,
255 wxCoord *x, wxCoord *y,
256 wxCoord *descent = NULL,
257 wxCoord *externalLeading = NULL,
258 wxFont *theFont = NULL) const
259 { DoGetTextExtent(string, x, y, descent, externalLeading, theFont); }
260
261 // size and resolution
262 // -------------------
263
264 // in device units
265 void GetSize(int *width, int *height) const
266 { DoGetSize(width, height); }
267 wxSize GetSize() const
268 {
269 int w, h;
270 DoGetSize(&w, &h);
271
272 return wxSize(w, h);
273 }
274
275 // in mm
276 void GetSizeMM(int* width, int* height) const
277 { DoGetSizeMM(width, height); }
278 wxSize GetSizeMM() const
279 {
280 int w, h;
281 DoGetSizeMM(&w, &h);
282
283 return wxSize(w, h);
284 }
285
286 // coordinates conversions
287 // -----------------------
288
289 // This group of functions does actual conversion of the input, as you'd
290 // expect.
291 wxCoord DeviceToLogicalX(wxCoord x) const;
292 wxCoord DeviceToLogicalY(wxCoord y) const;
293 wxCoord DeviceToLogicalXRel(wxCoord x) const;
294 wxCoord DeviceToLogicalYRel(wxCoord y) const;
295 wxCoord LogicalToDeviceX(wxCoord x) const;
296 wxCoord LogicalToDeviceY(wxCoord y) const;
297 wxCoord LogicalToDeviceXRel(wxCoord x) const;
298 wxCoord LogicalToDeviceYRel(wxCoord y) const;
299
300 // query DC capabilities
301 // ---------------------
302
303 virtual bool CanDrawBitmap() const = 0;
304 virtual bool CanGetTextExtent() const = 0;
305
306 // colour depth
307 virtual int GetDepth() const = 0;
308
309 // Resolution in Pixels per inch
310 virtual wxSize GetPPI() const = 0;
311
312 virtual bool Ok() const { return m_ok; }
313
314 // accessors
315 // ---------
316
317 // const...
318 const wxBrush& GetBackground() const { return m_backgroundBrush; }
319 const wxBrush& GetBrush() const { return m_brush; }
320 const wxFont& GetFont() const { return m_font; }
321 const wxPen& GetPen() const { return m_pen; }
322 const wxColour& GetTextBackground() const { return m_textBackgroundColour; }
323 const wxColour& GetTextForeground() const { return m_textForegroundColour; }
324
325 // ... and non const
326 wxBrush& GetBackground() { return m_backgroundBrush; }
327 wxBrush& GetBrush() { return m_brush; }
328 wxFont& GetFont() { return m_font; }
329 wxPen& GetPen() { return m_pen; }
330 wxColour& GetTextBackground() { return m_textBackgroundColour; }
331 wxColour& GetTextForeground() { return m_textForegroundColour; }
332
333 virtual void SetTextForeground(const wxColour& colour)
334 { m_textForegroundColour = colour; }
335 virtual void SetTextBackground(const wxColour& colour)
336 { m_textBackgroundColour = colour; }
337
338 int GetMapMode() const { return m_mappingMode; }
339 virtual void SetMapMode(int mode) = 0;
340
341 virtual void GetUserScale(double *x, double *y) const
342 {
343 if ( x ) *x = m_userScaleX;
344 if ( y ) *y = m_userScaleY;
345 }
346 virtual void SetUserScale(double x, double y) = 0;
347
348 virtual void GetLogicalScale(double *x, double *y)
349 {
350 if ( x ) *x = m_logicalScaleX;
351 if ( y ) *y = m_logicalScaleY;
352 }
353 virtual void SetLogicalScale(double x, double y)
354 {
355 m_logicalScaleX = x;
356 m_logicalScaleY = y;
357 }
358
359 void GetLogicalOrigin(wxCoord *x, wxCoord *y) const
360 { DoGetLogicalOrigin(x, y); }
361 wxPoint GetLogicalOrigin() const
362 { wxCoord x, y; DoGetLogicalOrigin(&x, &y); return wxPoint(x, y); }
363 virtual void SetLogicalOrigin(wxCoord x, wxCoord y) = 0;
364
365 void GetDeviceOrigin(wxCoord *x, wxCoord *y) const
366 { DoGetDeviceOrigin(x, y); }
367 wxPoint GetDeviceOrigin() const
368 { wxCoord x, y; DoGetDeviceOrigin(&x, &y); return wxPoint(x, y); }
369 virtual void SetDeviceOrigin(wxCoord x, wxCoord y) = 0;
370
371 virtual void SetAxisOrientation(bool xLeftRight, bool yBottomUp) = 0;
372
373 int GetLogicalFunction() const { return m_logicalFunction; }
374 virtual void SetLogicalFunction(int function) = 0;
375
376 // Sometimes we need to override optimization, e.g. if other software is
377 // drawing onto our surface and we can't be sure of who's done what.
378 //
379 // FIXME: is this (still) used?
380 virtual void SetOptimization(bool WXUNUSED(opt)) { }
381 virtual bool GetOptimization() { return FALSE; }
382
383 // bounding box
384 // ------------
385
386 virtual void CalcBoundingBox(wxCoord x, wxCoord y)
387 {
388 if ( x < m_minX ) m_minX = x;
389 if ( y < m_minY ) m_minY = y;
390 if ( x > m_maxX ) m_maxX = x;
391 if ( y > m_maxY ) m_maxY = y;
392 }
393
394 // Get the final bounding box of the PostScript or Metafile picture.
395 wxCoord MinX() const { return m_minX; }
396 wxCoord MaxX() const { return m_maxX; }
397 wxCoord MinY() const { return m_minY; }
398 wxCoord MaxY() const { return m_maxY; }
399
400 // misc old functions
401 // ------------------
402
403 // for compatibility with the old code when wxCoord was long everywhere
404 #ifndef __WIN16__
405 void GetTextExtent(const wxString& string,
406 long *x, long *y,
407 long *descent = NULL,
408 long *externalLeading = NULL,
409 wxFont *theFont = NULL) const
410 {
411 wxCoord x2, y2, descent2, externalLeading2;
412 DoGetTextExtent(string, &x2, &y2,
413 &descent2, &externalLeading2,
414 theFont);
415 if ( x )
416 *x = x2;
417 if ( y )
418 *y = y2;
419 if ( descent )
420 *descent = descent2;
421 if ( externalLeading )
422 *externalLeading = externalLeading2;
423 }
424
425 void GetLogicalOrigin(long *x, long *y) const
426 {
427 wxCoord x2, y2;
428 DoGetLogicalOrigin(&x2, &y2);
429 if ( x )
430 *x = x2;
431 if ( y )
432 *y = y2;
433 }
434
435 void GetDeviceOrigin(long *x, long *y) const
436 {
437 wxCoord x2, y2;
438 DoGetDeviceOrigin(&x2, &y2);
439 if ( x )
440 *x = x2;
441 if ( y )
442 *y = y2;
443 }
444 #endif // !Win16
445
446 #if WXWIN_COMPATIBILITY
447 virtual void SetColourMap(const wxPalette& palette) { SetPalette(palette); }
448 void GetTextExtent(const wxString& string, float *x, float *y,
449 float *descent = NULL, float *externalLeading = NULL,
450 wxFont *theFont = NULL, bool use16bit = FALSE) const ;
451 void GetSize(float* width, float* height) const { int w, h; GetSize(& w, & h); *width = w; *height = h; }
452 void GetSizeMM(float *width, float *height) const { long w, h; GetSizeMM(& w, & h); *width = (float) w; *height = (float) h; }
453 #endif // WXWIN_COMPATIBILITY
454
455 protected:
456 // the pure virtual functions which should be implemented by wxDC
457 virtual void DoFloodFill(wxCoord x, wxCoord y, const wxColour& col,
458 int style = wxFLOOD_SURFACE) = 0;
459
460 virtual bool DoGetPixel(wxCoord x, wxCoord y, wxColour *col) const = 0;
461
462 virtual void DoDrawPoint(wxCoord x, wxCoord y) = 0;
463 virtual void DoDrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2) = 0;
464
465 virtual void DoDrawArc(wxCoord x1, wxCoord y1,
466 wxCoord x2, wxCoord y2,
467 wxCoord xc, wxCoord yc) = 0;
468 virtual void DoDrawEllipticArc(wxCoord x, wxCoord y, wxCoord w, wxCoord h,
469 double sa, double ea) = 0;
470
471 virtual void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height) = 0;
472 virtual void DoDrawRoundedRectangle(wxCoord x, wxCoord y,
473 wxCoord width, wxCoord height,
474 double radius) = 0;
475 virtual void DoDrawEllipse(wxCoord x, wxCoord y,
476 wxCoord width, wxCoord height) = 0;
477
478 virtual void DoCrossHair(wxCoord x, wxCoord y) = 0;
479
480 virtual void DoDrawIcon(const wxIcon& icon, wxCoord x, wxCoord y) = 0;
481 virtual void DoDrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y,
482 bool useMask = FALSE) = 0;
483
484 virtual void DoDrawText(const wxString& text, wxCoord x, wxCoord y) = 0;
485
486 virtual bool DoBlit(wxCoord xdest, wxCoord ydest,
487 wxCoord width, wxCoord height,
488 wxDC *source, wxCoord xsrc, wxCoord ysrc,
489 int rop = wxCOPY, bool useMask = FALSE) = 0;
490
491 virtual void DoGetSize(int *width, int *height) const = 0;
492 virtual void DoGetSizeMM(int* width, int* height) const = 0;
493
494 virtual void DoDrawLines(int n, wxPoint points[],
495 wxCoord xoffset, wxCoord yoffset) = 0;
496 virtual void DoDrawPolygon(int n, wxPoint points[],
497 wxCoord xoffset, wxCoord yoffset,
498 int fillStyle = wxODDEVEN_RULE) = 0;
499
500 virtual void DoSetClippingRegionAsRegion(const wxRegion& region) = 0;
501 virtual void DoSetClippingRegion(wxCoord x, wxCoord y,
502 wxCoord width, wxCoord height) = 0;
503
504 // FIXME are these functions really different?
505 virtual void DoGetClippingRegion(wxCoord *x, wxCoord *y,
506 wxCoord *w, wxCoord *h)
507 { DoGetClippingBox(x, y, w, h); }
508 virtual void DoGetClippingBox(wxCoord *x, wxCoord *y,
509 wxCoord *w, wxCoord *h) const
510 {
511 if ( m_clipping )
512 {
513 if ( x ) *x = m_clipX1;
514 if ( y ) *y = m_clipY1;
515 if ( w ) *w = m_clipX2 - m_clipX1;
516 if ( h ) *h = m_clipY2 - m_clipY1;
517 }
518 else
519 {
520 *x = *y = *w = *h = 0;
521 }
522 }
523
524 virtual void DoGetLogicalOrigin(wxCoord *x, wxCoord *y) const
525 {
526 if ( x ) *x = m_logicalOriginX;
527 if ( y ) *y = m_logicalOriginY;
528 }
529
530 virtual void DoGetDeviceOrigin(wxCoord *x, wxCoord *y) const
531 {
532 if ( x ) *x = m_deviceOriginX;
533 if ( y ) *y = m_deviceOriginY;
534 }
535
536 virtual void DoGetTextExtent(const wxString& string,
537 wxCoord *x, wxCoord *y,
538 wxCoord *descent = NULL,
539 wxCoord *externalLeading = NULL,
540 wxFont *theFont = NULL) const = 0;
541
542 #if wxUSE_SPLINES
543 virtual void DoDrawSpline(wxList *points) = 0;
544 #endif
545
546 protected:
547 // flags
548 bool m_colour:1;
549 bool m_ok:1;
550 bool m_clipping:1;
551 bool m_isInteractive:1;
552
553 // coordinate system variables
554
555 // TODO short descriptions of what exactly they are would be nice...
556
557 wxCoord m_logicalOriginX, m_logicalOriginY;
558 wxCoord m_deviceOriginX, m_deviceOriginY;
559
560 double m_logicalScaleX, m_logicalScaleY;
561 double m_userScaleX, m_userScaleY;
562 double m_scaleX, m_scaleY;
563
564 // Used by SetAxisOrientation() to invert the axes
565 int m_signX, m_signY;
566
567 // bounding and clipping boxes
568 wxCoord m_minX, m_minY, m_maxX, m_maxY;
569 wxCoord m_clipX1, m_clipY1, m_clipX2, m_clipY2;
570
571 int m_logicalFunction;
572 int m_backgroundMode;
573 int m_mappingMode;
574
575 // GDI objects
576 wxPen m_pen;
577 wxBrush m_brush;
578 wxBrush m_backgroundBrush;
579 wxColour m_textForegroundColour;
580 wxColour m_textBackgroundColour;
581 wxFont m_font;
582 wxPalette m_palette;
583
584 private:
585 DECLARE_NO_COPY_CLASS(wxDCBase);
586 };
587
588 // ----------------------------------------------------------------------------
589 // now include the declaration of wxDC class
590 // ----------------------------------------------------------------------------
591
592 #if defined(__WXMSW__)
593 #include "wx/msw/dc.h"
594 #elif defined(__WXMOTIF__)
595 #include "wx/motif/dc.h"
596 #elif defined(__WXGTK__)
597 #include "wx/gtk/dc.h"
598 #elif defined(__WXQT__)
599 #include "wx/qt/dc.h"
600 #elif defined(__WXMAC__)
601 #include "wx/mac/dc.h"
602 #elif defined(__WXPM__)
603 #include "wx/os2/dc.h"
604 #elif defined(__WXSTUBS__)
605 #include "wx/stubs/dc.h"
606 #endif
607
608 #endif
609 // _WX_DC_H_BASE_