1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Vadim Zeitlin
8 // Copyright: (c) wxWindows team
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_DC_H_BASE_
13 #define _WX_DC_H_BASE_
16 #pragma interface "dcbase.h"
19 // ----------------------------------------------------------------------------
20 // headers which we must include here
21 // ----------------------------------------------------------------------------
23 #include "wx/object.h" // the base class
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"
30 #include "wx/palette.h"
32 #include "wx/list.h" // we use wxList in inline functions
34 // ---------------------------------------------------------------------------
36 // ---------------------------------------------------------------------------
38 WXDLLEXPORT_DATA(extern int) wxPageNumber
;
40 // ---------------------------------------------------------------------------
41 // wxDC is the device context - object on which any drawing is done
42 // ---------------------------------------------------------------------------
44 class WXDLLEXPORT wxDCBase
: public wxObject
54 m_signX
= m_signY
= 1;
56 m_logicalOriginX
= m_logicalOriginY
=
57 m_deviceOriginX
= m_deviceOriginY
= 0;
59 m_logicalScaleX
= m_logicalScaleY
=
60 m_userScaleX
= m_userScaleY
=
61 m_scaleX
= m_scaleY
= 1.0;
63 m_logicalFunction
= wxCOPY
;
65 m_backgroundMode
= wxTRANSPARENT
;
67 m_mappingMode
= wxMM_TEXT
;
69 m_backgroundBrush
= *wxTRANSPARENT_BRUSH
;
71 m_textForegroundColour
= *wxBLACK
;
72 m_textBackgroundColour
= *wxWHITE
;
74 m_colour
= wxColourDisplay();
79 virtual void BeginDrawing() { }
80 virtual void EndDrawing() { }
85 void FloodFill(wxCoord x
, wxCoord y
, const wxColour
& col
,
86 int style
= wxFLOOD_SURFACE
)
87 { DoFloodFill(x
, y
, col
, style
); }
88 void FloodFill(const wxPoint
& pt
, const wxColour
& col
,
89 int style
= wxFLOOD_SURFACE
)
90 { DoFloodFill(pt
.x
, pt
.y
, col
, style
); }
92 bool GetPixel(wxCoord x
, wxCoord y
, wxColour
*col
) const
93 { return DoGetPixel(x
, y
, col
); }
94 bool GetPixel(const wxPoint
& pt
, wxColour
*col
) const
95 { return DoGetPixel(pt
.x
, pt
.y
, col
); }
97 void DrawLine(wxCoord x1
, wxCoord y1
, wxCoord x2
, wxCoord y2
)
98 { DoDrawLine(x1
, y1
, x2
, y2
); }
99 void DrawLine(const wxPoint
& pt1
, const wxPoint
& pt2
)
100 { DoDrawLine(pt1
.x
, pt1
.y
, pt2
.x
, pt2
.y
); }
102 void CrossHair(wxCoord x
, wxCoord y
)
103 { DoCrossHair(x
, y
); }
104 void CrossHair(const wxPoint
& pt
)
105 { DoCrossHair(pt
.x
, pt
.y
); }
107 void DrawArc(wxCoord x1
, wxCoord y1
, wxCoord x2
, wxCoord y2
,
108 wxCoord xc
, wxCoord yc
)
109 { DoDrawArc(x1
, y1
, x2
, y2
, xc
, yc
); }
110 void DrawArc(const wxPoint
& pt1
, const wxPoint
& pt2
, const wxPoint
& centre
)
111 { DoDrawArc(pt1
.x
, pt1
.y
, pt2
.x
, pt2
.y
, centre
.x
, centre
.y
); }
113 void DrawCheckMark(wxCoord x
, wxCoord y
,
114 wxCoord width
, wxCoord height
)
115 { DoDrawCheckMark(x
, y
, width
, height
); }
116 void DrawCheckMark(const wxRect
& rect
)
117 { DoDrawCheckMark(rect
.x
, rect
.y
, rect
.width
, rect
.height
); }
119 void DrawEllipticArc(wxCoord x
, wxCoord y
, wxCoord w
, wxCoord h
,
120 double sa
, double ea
)
121 { DoDrawEllipticArc(x
, y
, w
, h
, sa
, ea
); }
122 void DrawEllipticArc(const wxPoint
& pt
, const wxSize
& sz
,
123 double sa
, double ea
)
124 { DoDrawEllipticArc(pt
.x
, pt
.y
, sz
.x
, sz
.y
, sa
, ea
); }
126 void DrawPoint(wxCoord x
, wxCoord y
)
127 { DoDrawPoint(x
, y
); }
128 void DrawPoint(const wxPoint
& pt
)
129 { DoDrawPoint(pt
.x
, pt
.y
); }
131 void DrawLines(int n
, wxPoint points
[],
132 wxCoord xoffset
= 0, wxCoord yoffset
= 0)
133 { DoDrawLines(n
, points
, xoffset
, yoffset
); }
134 void DrawLines(const wxList
*list
,
135 wxCoord xoffset
= 0, wxCoord yoffset
= 0);
137 void DrawPolygon(int n
, wxPoint points
[],
138 wxCoord xoffset
= 0, wxCoord yoffset
= 0,
139 int fillStyle
= wxODDEVEN_RULE
)
140 { DoDrawPolygon(n
, points
, xoffset
, yoffset
, fillStyle
); }
142 void DrawPolygon(const wxList
*list
,
143 wxCoord xoffset
= 0, wxCoord yoffset
= 0,
144 int fillStyle
= wxODDEVEN_RULE
);
146 void DrawRectangle(wxCoord x
, wxCoord y
, wxCoord width
, wxCoord height
)
147 { DoDrawRectangle(x
, y
, width
, height
); }
148 void DrawRectangle(const wxPoint
& pt
, const wxSize
& sz
)
149 { DoDrawRectangle(pt
.x
, pt
.y
, sz
.x
, sz
.y
); }
150 void DrawRectangle(const wxRect
& rect
)
151 { DoDrawRectangle(rect
.x
, rect
.y
, rect
.width
, rect
.height
); }
153 void DrawRoundedRectangle(wxCoord x
, wxCoord y
, wxCoord width
, wxCoord height
,
155 { DoDrawRoundedRectangle(x
, y
, width
, height
, radius
); }
156 void DrawRoundedRectangle(const wxPoint
& pt
, const wxSize
& sz
,
158 { DoDrawRoundedRectangle(pt
.x
, pt
.y
, sz
.x
, sz
.y
, radius
); }
159 void DrawRoundedRectangle(const wxRect
& r
, double radius
)
160 { DoDrawRoundedRectangle(r
.x
, r
.y
, r
.width
, r
.height
, radius
); }
162 void DrawCircle(wxCoord x
, wxCoord y
, wxCoord radius
)
163 { DoDrawEllipse(x
- radius
, y
- radius
, 2*radius
, 2*radius
); }
164 void DrawEllipse(wxCoord x
, wxCoord y
, wxCoord width
, wxCoord height
)
165 { DoDrawEllipse(x
, y
, width
, height
); }
166 void DrawEllipse(const wxPoint
& pt
, const wxSize
& sz
)
167 { DoDrawEllipse(pt
.x
, pt
.y
, sz
.x
, sz
.y
); }
168 void DrawEllipse(const wxRect
& rect
)
169 { DoDrawEllipse(rect
.x
, rect
.y
, rect
.width
, rect
.height
); }
171 void DrawIcon(const wxIcon
& icon
, wxCoord x
, wxCoord y
)
172 { DoDrawIcon(icon
, x
, y
); }
173 void DrawIcon(const wxIcon
& icon
, const wxPoint
& pt
)
174 { DoDrawIcon(icon
, pt
.x
, pt
.y
); }
176 void DrawBitmap(const wxBitmap
&bmp
, wxCoord x
, wxCoord y
,
177 bool useMask
= FALSE
)
178 { DoDrawBitmap(bmp
, x
, y
, useMask
); }
179 void DrawBitmap(const wxBitmap
&bmp
, const wxPoint
& pt
,
180 bool useMask
= FALSE
)
181 { DoDrawBitmap(bmp
, pt
.x
, pt
.y
, useMask
); }
183 void DrawText(const wxString
& text
, wxCoord x
, wxCoord y
)
184 { DoDrawText(text
, x
, y
); }
185 void DrawText(const wxString
& text
, const wxPoint
& pt
)
186 { DoDrawText(text
, pt
.x
, pt
.y
); }
188 void DrawRotatedText(const wxString
& text
, wxCoord x
, wxCoord y
, double angle
)
189 { DoDrawRotatedText(text
, x
, y
, angle
); }
190 void DrawRotatedText(const wxString
& text
, const wxPoint
& pt
, double angle
)
191 { DoDrawRotatedText(text
, pt
.x
, pt
.y
, angle
); }
193 bool Blit(wxCoord xdest
, wxCoord ydest
, wxCoord width
, wxCoord height
,
194 wxDC
*source
, wxCoord xsrc
, wxCoord ysrc
,
195 int rop
= wxCOPY
, bool useMask
= FALSE
)
197 return DoBlit(xdest
, ydest
, width
, height
,
198 source
, xsrc
, ysrc
, rop
, useMask
);
200 bool Blit(const wxPoint
& destPt
, const wxSize
& sz
,
201 wxDC
*source
, const wxPoint
& srcPt
,
202 int rop
= wxCOPY
, bool useMask
= FALSE
)
204 return DoBlit(destPt
.x
, destPt
.y
, sz
.x
, sz
.y
,
205 source
, srcPt
.x
, srcPt
.y
, rop
, useMask
);
209 // TODO: this API needs fixing (wxPointList, why (!const) "wxList *"?)
210 void DrawSpline(wxCoord x1
, wxCoord y1
,
211 wxCoord x2
, wxCoord y2
,
212 wxCoord x3
, wxCoord y3
);
213 void DrawSpline(int n
, wxPoint points
[]);
215 void DrawSpline(wxList
*points
) { DoDrawSpline(points
); }
216 #endif // wxUSE_SPLINES
218 // global DC operations
219 // --------------------
221 virtual void Clear() = 0;
223 virtual bool StartDoc(const wxString
& WXUNUSED(message
)) { return TRUE
; }
224 virtual void EndDoc() { }
226 virtual void StartPage() { }
227 virtual void EndPage() { }
229 // set objects to use for drawing
230 // ------------------------------
232 virtual void SetFont(const wxFont
& font
) = 0;
233 virtual void SetPen(const wxPen
& pen
) = 0;
234 virtual void SetBrush(const wxBrush
& brush
) = 0;
235 virtual void SetBackground(const wxBrush
& brush
) = 0;
236 virtual void SetBackgroundMode(int mode
) = 0;
237 virtual void SetPalette(const wxPalette
& palette
) = 0;
242 void SetClippingRegion(wxCoord x
, wxCoord y
, wxCoord width
, wxCoord height
)
243 { DoSetClippingRegion(x
, y
, width
, height
); }
244 void SetClippingRegion(const wxPoint
& pt
, const wxSize
& sz
)
245 { DoSetClippingRegion(pt
.x
, pt
.y
, sz
.x
, sz
.y
); }
246 void SetClippingRegion(const wxRect
& rect
)
247 { DoSetClippingRegion(rect
.x
, rect
.y
, rect
.width
, rect
.height
); }
248 void SetClippingRegion(const wxRegion
& region
)
249 { DoSetClippingRegionAsRegion(region
); }
251 virtual void DestroyClippingRegion() = 0;
253 void GetClippingBox(wxCoord
*x
, wxCoord
*y
, wxCoord
*w
, wxCoord
*h
) const
254 { DoGetClippingBox(x
, y
, w
, h
); }
255 void GetClippingBox(wxRect
& rect
) const
257 // Necessary to use intermediate variables for 16-bit compilation
259 DoGetClippingBox(&x
, &y
, &w
, &h
);
260 rect
.x
= x
; rect
.y
= y
; rect
.width
= w
; rect
.height
= h
;
266 virtual wxCoord
GetCharHeight() const = 0;
267 virtual wxCoord
GetCharWidth() const = 0;
269 void GetTextExtent(const wxString
& string
,
270 wxCoord
*x
, wxCoord
*y
,
271 wxCoord
*descent
= NULL
,
272 wxCoord
*externalLeading
= NULL
,
273 wxFont
*theFont
= NULL
) const
274 { DoGetTextExtent(string
, x
, y
, descent
, externalLeading
, theFont
); }
276 // size and resolution
277 // -------------------
280 void GetSize(int *width
, int *height
) const
281 { DoGetSize(width
, height
); }
282 wxSize
GetSize() const
291 void GetSizeMM(int* width
, int* height
) const
292 { DoGetSizeMM(width
, height
); }
293 wxSize
GetSizeMM() const
301 // coordinates conversions
302 // -----------------------
304 // This group of functions does actual conversion of the input, as you'd
306 wxCoord
DeviceToLogicalX(wxCoord x
) const;
307 wxCoord
DeviceToLogicalY(wxCoord y
) const;
308 wxCoord
DeviceToLogicalXRel(wxCoord x
) const;
309 wxCoord
DeviceToLogicalYRel(wxCoord y
) const;
310 wxCoord
LogicalToDeviceX(wxCoord x
) const;
311 wxCoord
LogicalToDeviceY(wxCoord y
) const;
312 wxCoord
LogicalToDeviceXRel(wxCoord x
) const;
313 wxCoord
LogicalToDeviceYRel(wxCoord y
) const;
315 // query DC capabilities
316 // ---------------------
318 virtual bool CanDrawBitmap() const = 0;
319 virtual bool CanGetTextExtent() const = 0;
322 virtual int GetDepth() const = 0;
324 // Resolution in Pixels per inch
325 virtual wxSize
GetPPI() const = 0;
327 virtual bool Ok() const { return m_ok
; }
333 int GetBackgroundMode() const { return m_backgroundMode
; }
334 const wxBrush
& GetBackground() const { return m_backgroundBrush
; }
335 const wxBrush
& GetBrush() const { return m_brush
; }
336 const wxFont
& GetFont() const { return m_font
; }
337 const wxPen
& GetPen() const { return m_pen
; }
338 const wxColour
& GetTextBackground() const { return m_textBackgroundColour
; }
339 const wxColour
& GetTextForeground() const { return m_textForegroundColour
; }
342 wxBrush
& GetBackground() { return m_backgroundBrush
; }
343 wxBrush
& GetBrush() { return m_brush
; }
344 wxFont
& GetFont() { return m_font
; }
345 wxPen
& GetPen() { return m_pen
; }
346 wxColour
& GetTextBackground() { return m_textBackgroundColour
; }
347 wxColour
& GetTextForeground() { return m_textForegroundColour
; }
349 virtual void SetTextForeground(const wxColour
& colour
)
350 { m_textForegroundColour
= colour
; }
351 virtual void SetTextBackground(const wxColour
& colour
)
352 { m_textBackgroundColour
= colour
; }
354 int GetMapMode() const { return m_mappingMode
; }
355 virtual void SetMapMode(int mode
) = 0;
357 virtual void GetUserScale(double *x
, double *y
) const
359 if ( x
) *x
= m_userScaleX
;
360 if ( y
) *y
= m_userScaleY
;
362 virtual void SetUserScale(double x
, double y
) = 0;
364 virtual void GetLogicalScale(double *x
, double *y
)
366 if ( x
) *x
= m_logicalScaleX
;
367 if ( y
) *y
= m_logicalScaleY
;
369 virtual void SetLogicalScale(double x
, double y
)
375 void GetLogicalOrigin(wxCoord
*x
, wxCoord
*y
) const
376 { DoGetLogicalOrigin(x
, y
); }
377 wxPoint
GetLogicalOrigin() const
378 { wxCoord x
, y
; DoGetLogicalOrigin(&x
, &y
); return wxPoint(x
, y
); }
379 virtual void SetLogicalOrigin(wxCoord x
, wxCoord y
) = 0;
381 void GetDeviceOrigin(wxCoord
*x
, wxCoord
*y
) const
382 { DoGetDeviceOrigin(x
, y
); }
383 wxPoint
GetDeviceOrigin() const
384 { wxCoord x
, y
; DoGetDeviceOrigin(&x
, &y
); return wxPoint(x
, y
); }
385 virtual void SetDeviceOrigin(wxCoord x
, wxCoord y
) = 0;
387 virtual void SetAxisOrientation(bool xLeftRight
, bool yBottomUp
) = 0;
389 int GetLogicalFunction() const { return m_logicalFunction
; }
390 virtual void SetLogicalFunction(int function
) = 0;
392 // Sometimes we need to override optimization, e.g. if other software is
393 // drawing onto our surface and we can't be sure of who's done what.
395 // FIXME: is this (still) used?
396 virtual void SetOptimization(bool WXUNUSED(opt
)) { }
397 virtual bool GetOptimization() { return FALSE
; }
402 virtual void CalcBoundingBox(wxCoord x
, wxCoord y
)
406 if ( x
< m_minX
) m_minX
= x
;
407 if ( y
< m_minY
) m_minY
= y
;
408 if ( x
> m_maxX
) m_maxX
= x
;
409 if ( y
> m_maxY
) m_maxY
= y
;
413 m_isBBoxValid
= TRUE
;
422 void ResetBoundingBox()
424 m_isBBoxValid
= FALSE
;
426 m_minX
= m_maxX
= m_minY
= m_maxY
= 0;
429 // Get the final bounding box of the PostScript or Metafile picture.
430 wxCoord
MinX() const { return m_minX
; }
431 wxCoord
MaxX() const { return m_maxX
; }
432 wxCoord
MinY() const { return m_minY
; }
433 wxCoord
MaxY() const { return m_maxY
; }
435 // misc old functions
436 // ------------------
438 // for compatibility with the old code when wxCoord was long everywhere
440 void GetTextExtent(const wxString
& string
,
442 long *descent
= NULL
,
443 long *externalLeading
= NULL
,
444 wxFont
*theFont
= NULL
) const
446 wxCoord x2
, y2
, descent2
, externalLeading2
;
447 DoGetTextExtent(string
, &x2
, &y2
,
448 &descent2
, &externalLeading2
,
456 if ( externalLeading
)
457 *externalLeading
= externalLeading2
;
460 void GetLogicalOrigin(long *x
, long *y
) const
463 DoGetLogicalOrigin(&x2
, &y2
);
470 void GetDeviceOrigin(long *x
, long *y
) const
473 DoGetDeviceOrigin(&x2
, &y2
);
479 void GetClippingBox(long *x
, long *y
, long *w
, long *h
) const
482 DoGetClippingBox(&xx
, &yy
, &ww
, &hh
);
490 #if WXWIN_COMPATIBILITY
491 virtual void SetColourMap(const wxPalette
& palette
) { SetPalette(palette
); }
492 void GetTextExtent(const wxString
& string
, float *x
, float *y
,
493 float *descent
= NULL
, float *externalLeading
= NULL
,
494 wxFont
*theFont
= NULL
, bool use16bit
= FALSE
) const ;
495 void GetSize(float* width
, float* height
) const { int w
, h
; GetSize(& w
, & h
); *width
= w
; *height
= h
; }
496 void GetSizeMM(float *width
, float *height
) const { long w
, h
; GetSizeMM(& w
, & h
); *width
= (float) w
; *height
= (float) h
; }
497 #endif // WXWIN_COMPATIBILITY
500 // the pure virtual functions which should be implemented by wxDC
501 virtual void DoFloodFill(wxCoord x
, wxCoord y
, const wxColour
& col
,
502 int style
= wxFLOOD_SURFACE
) = 0;
504 virtual bool DoGetPixel(wxCoord x
, wxCoord y
, wxColour
*col
) const = 0;
506 virtual void DoDrawPoint(wxCoord x
, wxCoord y
) = 0;
507 virtual void DoDrawLine(wxCoord x1
, wxCoord y1
, wxCoord x2
, wxCoord y2
) = 0;
509 virtual void DoDrawArc(wxCoord x1
, wxCoord y1
,
510 wxCoord x2
, wxCoord y2
,
511 wxCoord xc
, wxCoord yc
) = 0;
512 virtual void DoDrawCheckMark(wxCoord x
, wxCoord y
,
513 wxCoord width
, wxCoord height
);
514 virtual void DoDrawEllipticArc(wxCoord x
, wxCoord y
, wxCoord w
, wxCoord h
,
515 double sa
, double ea
) = 0;
517 virtual void DoDrawRectangle(wxCoord x
, wxCoord y
, wxCoord width
, wxCoord height
) = 0;
518 virtual void DoDrawRoundedRectangle(wxCoord x
, wxCoord y
,
519 wxCoord width
, wxCoord height
,
521 virtual void DoDrawEllipse(wxCoord x
, wxCoord y
,
522 wxCoord width
, wxCoord height
) = 0;
524 virtual void DoCrossHair(wxCoord x
, wxCoord y
) = 0;
526 virtual void DoDrawIcon(const wxIcon
& icon
, wxCoord x
, wxCoord y
) = 0;
527 virtual void DoDrawBitmap(const wxBitmap
&bmp
, wxCoord x
, wxCoord y
,
528 bool useMask
= FALSE
) = 0;
530 virtual void DoDrawText(const wxString
& text
, wxCoord x
, wxCoord y
) = 0;
531 virtual void DoDrawRotatedText(const wxString
& text
,
532 wxCoord x
, wxCoord y
, double angle
) = 0;
534 virtual bool DoBlit(wxCoord xdest
, wxCoord ydest
,
535 wxCoord width
, wxCoord height
,
536 wxDC
*source
, wxCoord xsrc
, wxCoord ysrc
,
537 int rop
= wxCOPY
, bool useMask
= FALSE
) = 0;
539 virtual void DoGetSize(int *width
, int *height
) const = 0;
540 virtual void DoGetSizeMM(int* width
, int* height
) const = 0;
542 virtual void DoDrawLines(int n
, wxPoint points
[],
543 wxCoord xoffset
, wxCoord yoffset
) = 0;
544 virtual void DoDrawPolygon(int n
, wxPoint points
[],
545 wxCoord xoffset
, wxCoord yoffset
,
546 int fillStyle
= wxODDEVEN_RULE
) = 0;
548 virtual void DoSetClippingRegionAsRegion(const wxRegion
& region
) = 0;
549 virtual void DoSetClippingRegion(wxCoord x
, wxCoord y
,
550 wxCoord width
, wxCoord height
) = 0;
552 // FIXME are these functions really different?
553 virtual void DoGetClippingRegion(wxCoord
*x
, wxCoord
*y
,
554 wxCoord
*w
, wxCoord
*h
)
555 { DoGetClippingBox(x
, y
, w
, h
); }
556 virtual void DoGetClippingBox(wxCoord
*x
, wxCoord
*y
,
557 wxCoord
*w
, wxCoord
*h
) const
561 if ( x
) *x
= m_clipX1
;
562 if ( y
) *y
= m_clipY1
;
563 if ( w
) *w
= m_clipX2
- m_clipX1
;
564 if ( h
) *h
= m_clipY2
- m_clipY1
;
568 *x
= *y
= *w
= *h
= 0;
572 virtual void DoGetLogicalOrigin(wxCoord
*x
, wxCoord
*y
) const
574 if ( x
) *x
= m_logicalOriginX
;
575 if ( y
) *y
= m_logicalOriginY
;
578 virtual void DoGetDeviceOrigin(wxCoord
*x
, wxCoord
*y
) const
580 if ( x
) *x
= m_deviceOriginX
;
581 if ( y
) *y
= m_deviceOriginY
;
584 virtual void DoGetTextExtent(const wxString
& string
,
585 wxCoord
*x
, wxCoord
*y
,
586 wxCoord
*descent
= NULL
,
587 wxCoord
*externalLeading
= NULL
,
588 wxFont
*theFont
= NULL
) const = 0;
591 virtual void DoDrawSpline(wxList
*points
) = 0;
599 bool m_isInteractive
:1;
600 bool m_isBBoxValid
:1;
602 // coordinate system variables
604 // TODO short descriptions of what exactly they are would be nice...
606 wxCoord m_logicalOriginX
, m_logicalOriginY
;
607 wxCoord m_deviceOriginX
, m_deviceOriginY
;
609 double m_logicalScaleX
, m_logicalScaleY
;
610 double m_userScaleX
, m_userScaleY
;
611 double m_scaleX
, m_scaleY
;
613 // Used by SetAxisOrientation() to invert the axes
614 int m_signX
, m_signY
;
616 // bounding and clipping boxes
617 wxCoord m_minX
, m_minY
, m_maxX
, m_maxY
;
618 wxCoord m_clipX1
, m_clipY1
, m_clipX2
, m_clipY2
;
620 int m_logicalFunction
;
621 int m_backgroundMode
;
627 wxBrush m_backgroundBrush
;
628 wxColour m_textForegroundColour
;
629 wxColour m_textBackgroundColour
;
634 DECLARE_NO_COPY_CLASS(wxDCBase
);
635 DECLARE_ABSTRACT_CLASS(wxDCBase
)
638 // ----------------------------------------------------------------------------
639 // now include the declaration of wxDC class
640 // ----------------------------------------------------------------------------
642 #if defined(__WXMSW__)
643 #include "wx/msw/dc.h"
644 #elif defined(__WXMOTIF__)
645 #include "wx/motif/dc.h"
646 #elif defined(__WXGTK__)
647 #include "wx/gtk/dc.h"
648 #elif defined(__WXQT__)
649 #include "wx/qt/dc.h"
650 #elif defined(__WXMAC__)
651 #include "wx/mac/dc.h"
652 #elif defined(__WXPM__)
653 #include "wx/os2/dc.h"
654 #elif defined(__WXSTUBS__)
655 #include "wx/stubs/dc.h"