1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: graphics context header
4 // Author: Stefan Csomor
7 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_GRAPHICS_H_
13 #define _WX_GRAPHICS_H_
17 #if wxUSE_GRAPHICS_CONTEXT
19 #include "wx/geometry.h"
20 #include "wx/dynarray.h"
23 class WXDLLIMPEXP_FWD_CORE wxWindowDC
;
24 class WXDLLIMPEXP_FWD_CORE wxMemoryDC
;
25 #if wxUSE_PRINTING_ARCHITECTURE
26 class WXDLLIMPEXP_FWD_CORE wxPrinterDC
;
28 class WXDLLIMPEXP_FWD_CORE wxGraphicsContext
;
29 class WXDLLIMPEXP_FWD_CORE wxGraphicsPath
;
30 class WXDLLIMPEXP_FWD_CORE wxGraphicsMatrix
;
31 class WXDLLIMPEXP_FWD_CORE wxGraphicsFigure
;
32 class WXDLLIMPEXP_FWD_CORE wxGraphicsRenderer
;
33 class WXDLLIMPEXP_FWD_CORE wxGraphicsPen
;
34 class WXDLLIMPEXP_FWD_CORE wxGraphicsBrush
;
35 class WXDLLIMPEXP_FWD_CORE wxGraphicsFont
;
36 class WXDLLIMPEXP_FWD_CORE wxGraphicsBitmap
;
39 * notes about the graphics context apis
41 * angles : are measured in radians, 0.0 being in direction of positiv x axis, PI/2 being
42 * in direction of positive y axis.
45 // Base class of all objects used for drawing in the new graphics API, the always point back to their
46 // originating rendering engine, there is no dynamic unloading of a renderer currently allowed,
47 // these references are not counted
50 // The data used by objects like graphics pens etc is ref counted, in order to avoid unnecessary expensive
51 // duplication. Any operation on a shared instance that results in a modified state, uncouples this
52 // instance from the other instances that were shared - using copy on write semantics
55 class WXDLLIMPEXP_FWD_CORE wxGraphicsObjectRefData
;
56 class WXDLLIMPEXP_FWD_CORE wxGraphicsMatrixData
;
57 class WXDLLIMPEXP_FWD_CORE wxGraphicsPathData
;
59 class WXDLLIMPEXP_CORE wxGraphicsObject
: public wxObject
63 wxGraphicsObject( wxGraphicsRenderer
* renderer
);
64 virtual ~wxGraphicsObject();
68 // returns the renderer that was used to create this instance, or NULL if it has not been initialized yet
69 wxGraphicsRenderer
* GetRenderer() const;
70 wxGraphicsObjectRefData
* GetGraphicsData() const;
72 virtual wxObjectRefData
* CreateRefData() const;
73 virtual wxObjectRefData
* CloneRefData(const wxObjectRefData
* data
) const;
75 DECLARE_DYNAMIC_CLASS(wxGraphicsObject
)
78 class WXDLLIMPEXP_CORE wxGraphicsPen
: public wxGraphicsObject
82 virtual ~wxGraphicsPen() {}
84 DECLARE_DYNAMIC_CLASS(wxGraphicsPen
)
87 extern WXDLLIMPEXP_DATA_CORE(wxGraphicsPen
) wxNullGraphicsPen
;
89 class WXDLLIMPEXP_CORE wxGraphicsBrush
: public wxGraphicsObject
93 virtual ~wxGraphicsBrush() {}
95 DECLARE_DYNAMIC_CLASS(wxGraphicsBrush
)
98 extern WXDLLIMPEXP_DATA_CORE(wxGraphicsBrush
) wxNullGraphicsBrush
;
100 class WXDLLIMPEXP_CORE wxGraphicsFont
: public wxGraphicsObject
104 virtual ~wxGraphicsFont() {}
106 DECLARE_DYNAMIC_CLASS(wxGraphicsFont
)
109 extern WXDLLIMPEXP_DATA_CORE(wxGraphicsFont
) wxNullGraphicsFont
;
111 class WXDLLIMPEXP_CORE wxGraphicsBitmap
: public wxGraphicsObject
114 wxGraphicsBitmap() {}
115 virtual ~wxGraphicsBitmap() {}
117 DECLARE_DYNAMIC_CLASS(wxGraphicsBitmap
)
120 extern WXDLLIMPEXP_DATA_CORE(wxGraphicsBitmap
) wxNullGraphicsBitmap
;
122 class WXDLLIMPEXP_CORE wxGraphicsMatrix
: public wxGraphicsObject
125 wxGraphicsMatrix() {}
127 virtual ~wxGraphicsMatrix() {}
129 // concatenates the matrix
130 virtual void Concat( const wxGraphicsMatrix
*t
);
131 void Concat( const wxGraphicsMatrix
&t
) { Concat( &t
); }
133 // sets the matrix to the respective values
134 virtual void Set(wxDouble a
=1.0, wxDouble b
=0.0, wxDouble c
=0.0, wxDouble d
=1.0,
135 wxDouble tx
=0.0, wxDouble ty
=0.0);
137 // gets the component valuess of the matrix
138 virtual void Get(wxDouble
* a
=NULL
, wxDouble
* b
=NULL
, wxDouble
* c
=NULL
,
139 wxDouble
* d
=NULL
, wxDouble
* tx
=NULL
, wxDouble
* ty
=NULL
) const;
141 // makes this the inverse matrix
142 virtual void Invert();
144 // returns true if the elements of the transformation matrix are equal ?
145 virtual bool IsEqual( const wxGraphicsMatrix
* t
) const;
146 bool IsEqual( const wxGraphicsMatrix
& t
) const { return IsEqual( &t
); }
148 // return true if this is the identity matrix
149 virtual bool IsIdentity() const;
155 // add the translation to this matrix
156 virtual void Translate( wxDouble dx
, wxDouble dy
);
158 // add the scale to this matrix
159 virtual void Scale( wxDouble xScale
, wxDouble yScale
);
161 // add the rotation to this matrix (radians)
162 virtual void Rotate( wxDouble angle
);
165 // apply the transforms
168 // applies that matrix to the point
169 virtual void TransformPoint( wxDouble
*x
, wxDouble
*y
) const;
171 // applies the matrix except for translations
172 virtual void TransformDistance( wxDouble
*dx
, wxDouble
*dy
) const;
174 // returns the native representation
175 virtual void * GetNativeMatrix() const;
177 const wxGraphicsMatrixData
* GetMatrixData() const
178 { return (const wxGraphicsMatrixData
*) GetRefData(); }
179 wxGraphicsMatrixData
* GetMatrixData()
180 { return (wxGraphicsMatrixData
*) GetRefData(); }
183 DECLARE_DYNAMIC_CLASS(wxGraphicsMatrix
)
186 extern WXDLLIMPEXP_DATA_CORE(wxGraphicsMatrix
) wxNullGraphicsMatrix
;
188 class WXDLLIMPEXP_CORE wxGraphicsPath
: public wxGraphicsObject
192 virtual ~wxGraphicsPath() {}
195 // These are the path primitives from which everything else can be constructed
198 // begins a new subpath at (x,y)
199 virtual void MoveToPoint( wxDouble x
, wxDouble y
);
200 void MoveToPoint( const wxPoint2DDouble
& p
);
202 // adds a straight line from the current point to (x,y)
203 virtual void AddLineToPoint( wxDouble x
, wxDouble y
);
204 void AddLineToPoint( const wxPoint2DDouble
& p
);
206 // adds a cubic Bezier curve from the current point, using two control points and an end point
207 virtual void AddCurveToPoint( wxDouble cx1
, wxDouble cy1
, wxDouble cx2
, wxDouble cy2
, wxDouble x
, wxDouble y
);
208 void AddCurveToPoint( const wxPoint2DDouble
& c1
, const wxPoint2DDouble
& c2
, const wxPoint2DDouble
& e
);
211 virtual void AddPath( const wxGraphicsPath
& path
);
213 // closes the current sub-path
214 virtual void CloseSubpath();
216 // gets the last point of the current path, (0,0) if not yet set
217 virtual void GetCurrentPoint( wxDouble
* x
, wxDouble
* y
) const;
218 wxPoint2DDouble
GetCurrentPoint() const;
220 // adds an arc of a circle centering at (x,y) with radius (r) from startAngle to endAngle
221 virtual void AddArc( wxDouble x
, wxDouble y
, wxDouble r
, wxDouble startAngle
, wxDouble endAngle
, bool clockwise
);
222 void AddArc( const wxPoint2DDouble
& c
, wxDouble r
, wxDouble startAngle
, wxDouble endAngle
, bool clockwise
);
225 // These are convenience functions which - if not available natively will be assembled
226 // using the primitives from above
229 // adds a quadratic Bezier curve from the current point, using a control point and an end point
230 virtual void AddQuadCurveToPoint( wxDouble cx
, wxDouble cy
, wxDouble x
, wxDouble y
);
232 // appends a rectangle as a new closed subpath
233 virtual void AddRectangle( wxDouble x
, wxDouble y
, wxDouble w
, wxDouble h
);
235 // appends an ellipsis as a new closed subpath fitting the passed rectangle
236 virtual void AddCircle( wxDouble x
, wxDouble y
, wxDouble r
);
238 // appends a an arc to two tangents connecting (current) to (x1,y1) and (x1,y1) to (x2,y2), also a straight line from (current) to (x1,y1)
239 virtual void AddArcToPoint( wxDouble x1
, wxDouble y1
, wxDouble x2
, wxDouble y2
, wxDouble r
);
241 // appends an ellipse
242 virtual void AddEllipse( wxDouble x
, wxDouble y
, wxDouble w
, wxDouble h
);
244 // appends a rounded rectangle
245 virtual void AddRoundedRectangle( wxDouble x
, wxDouble y
, wxDouble w
, wxDouble h
, wxDouble radius
);
247 // returns the native path
248 virtual void * GetNativePath() const;
250 // give the native path returned by GetNativePath() back (there might be some deallocations necessary)
251 virtual void UnGetNativePath(void *p
)const;
253 // transforms each point of this path by the matrix
254 virtual void Transform( const wxGraphicsMatrix
& matrix
);
256 // gets the bounding box enclosing all points (possibly including control points)
257 virtual void GetBox(wxDouble
*x
, wxDouble
*y
, wxDouble
*w
, wxDouble
*h
)const;
258 wxRect2DDouble
GetBox()const;
260 virtual bool Contains( wxDouble x
, wxDouble y
, wxPolygonFillMode fillStyle
= wxODDEVEN_RULE
)const;
261 bool Contains( const wxPoint2DDouble
& c
, wxPolygonFillMode fillStyle
= wxODDEVEN_RULE
)const;
263 const wxGraphicsPathData
* GetPathData() const
264 { return (const wxGraphicsPathData
*) GetRefData(); }
265 wxGraphicsPathData
* GetPathData()
266 { return (wxGraphicsPathData
*) GetRefData(); }
269 DECLARE_DYNAMIC_CLASS(wxGraphicsPath
)
272 extern WXDLLIMPEXP_DATA_CORE(wxGraphicsPath
) wxNullGraphicsPath
;
275 class WXDLLIMPEXP_CORE wxGraphicsContext
: public wxGraphicsObject
278 wxGraphicsContext(wxGraphicsRenderer
* renderer
);
280 virtual ~wxGraphicsContext();
282 static wxGraphicsContext
* Create( const wxWindowDC
& dc
);
283 static wxGraphicsContext
* Create( const wxMemoryDC
& dc
);
284 #if wxUSE_PRINTING_ARCHITECTURE
285 static wxGraphicsContext
* Create( const wxPrinterDC
& dc
);
288 static wxGraphicsContext
* CreateFromNative( void * context
);
290 static wxGraphicsContext
* CreateFromNativeWindow( void * window
);
292 static wxGraphicsContext
* Create( wxWindow
* window
);
294 // create a context that can be used for measuring texts only, no drawing allowed
295 static wxGraphicsContext
* Create();
297 // begin a new document (relevant only for printing / pdf etc) if there is a progress dialog, message will be shown
298 virtual bool StartDoc( const wxString
& message
);
300 // done with that document (relevant only for printing / pdf etc)
301 virtual void EndDoc();
303 // opens a new page (relevant only for printing / pdf etc) with the given size in points
304 // (if both are null the default page size will be used)
305 virtual void StartPage( wxDouble width
= 0, wxDouble height
= 0 );
307 // ends the current page (relevant only for printing / pdf etc)
308 virtual void EndPage();
310 // make sure that the current content of this context is immediately visible
311 virtual void Flush();
313 wxGraphicsPath
CreatePath() const;
315 virtual wxGraphicsPen
CreatePen(const wxPen
& pen
) const;
317 virtual wxGraphicsBrush
CreateBrush(const wxBrush
& brush
) const;
319 // sets the brush to a linear gradient, starting at (x1,y1) with color c1 to (x2,y2) with color c2
320 virtual wxGraphicsBrush
CreateLinearGradientBrush( wxDouble x1
, wxDouble y1
, wxDouble x2
, wxDouble y2
,
321 const wxColour
&c1
, const wxColour
&c2
) const;
323 // sets the brush to a radial gradient originating at (xo,yc) with color oColor and ends on a circle around (xc,yc)
324 // with radius r and color cColor
325 virtual wxGraphicsBrush
CreateRadialGradientBrush( wxDouble xo
, wxDouble yo
, wxDouble xc
, wxDouble yc
, wxDouble radius
,
326 const wxColour
&oColor
, const wxColour
&cColor
) const;
329 virtual wxGraphicsFont
CreateFont( const wxFont
&font
, const wxColour
&col
= *wxBLACK
) const;
331 // create a native bitmap representation
332 virtual wxGraphicsBitmap
CreateBitmap( const wxBitmap
&bitmap
) const;
334 // create a native bitmap representation
335 virtual wxGraphicsBitmap
CreateSubBitmap( const wxGraphicsBitmap
&bitmap
, wxDouble x
, wxDouble y
, wxDouble w
, wxDouble h
) const;
337 // create a 'native' matrix corresponding to these values
338 virtual wxGraphicsMatrix
CreateMatrix( wxDouble a
=1.0, wxDouble b
=0.0, wxDouble c
=0.0, wxDouble d
=1.0,
339 wxDouble tx
=0.0, wxDouble ty
=0.0) const;
341 // push the current state of the context, ie the transformation matrix on a stack
342 virtual void PushState() = 0;
344 // pops a stored state from the stack
345 virtual void PopState() = 0;
347 // clips drawings to the region intersected with the current clipping region
348 virtual void Clip( const wxRegion
®ion
) = 0;
350 // clips drawings to the rect intersected with the current clipping region
351 virtual void Clip( wxDouble x
, wxDouble y
, wxDouble w
, wxDouble h
) = 0;
353 // resets the clipping to original extent
354 virtual void ResetClip() = 0;
356 // returns the native context
357 virtual void * GetNativeContext() = 0;
359 // returns the current logical function
360 virtual wxRasterOperationMode
GetLogicalFunction() const { return m_logicalFunction
; }
362 // sets the current logical function, returns true if it supported
363 virtual bool SetLogicalFunction(wxRasterOperationMode function
);
365 // returns the size of the graphics context in device coordinates
366 virtual void GetSize( wxDouble
* width
, wxDouble
* height
);
368 // returns the resolution of the graphics context in device points per inch
369 virtual void GetDPI( wxDouble
* dpiX
, wxDouble
* dpiY
);
372 // sets the current alpha on this context
373 virtual void SetAlpha( wxDouble alpha
);
375 // returns the alpha on this context
376 virtual wxDouble
GetAlpha() const;
379 // transformation : changes the current transformation matrix CTM of the context
383 virtual void Translate( wxDouble dx
, wxDouble dy
) = 0;
386 virtual void Scale( wxDouble xScale
, wxDouble yScale
) = 0;
389 virtual void Rotate( wxDouble angle
) = 0;
391 // concatenates this transform with the current transform of this context
392 virtual void ConcatTransform( const wxGraphicsMatrix
& matrix
) = 0;
394 // sets the transform of this context
395 virtual void SetTransform( const wxGraphicsMatrix
& matrix
) = 0;
397 // gets the matrix of this context
398 virtual wxGraphicsMatrix
GetTransform() const = 0;
404 virtual void SetPen( const wxGraphicsPen
& pen
);
406 void SetPen( const wxPen
& pen
);
408 // sets the brush for filling
409 virtual void SetBrush( const wxGraphicsBrush
& brush
);
411 void SetBrush( const wxBrush
& brush
);
414 virtual void SetFont( const wxGraphicsFont
& font
);
416 void SetFont( const wxFont
& font
, const wxColour
& colour
);
419 // strokes along a path with the current pen
420 virtual void StrokePath( const wxGraphicsPath
& path
) = 0;
422 // fills a path with the current brush
423 virtual void FillPath( const wxGraphicsPath
& path
, wxPolygonFillMode fillStyle
= wxODDEVEN_RULE
) = 0;
425 // draws a path by first filling and then stroking
426 virtual void DrawPath( const wxGraphicsPath
& path
, wxPolygonFillMode fillStyle
= wxODDEVEN_RULE
);
432 void DrawText( const wxString
&str
, wxDouble x
, wxDouble y
)
433 { DoDrawText(str
, x
, y
); }
435 void DrawText( const wxString
&str
, wxDouble x
, wxDouble y
, wxDouble angle
)
436 { DoDrawRotatedText(str
, x
, y
, angle
); }
438 void DrawText( const wxString
&str
, wxDouble x
, wxDouble y
,
439 const wxGraphicsBrush
& backgroundBrush
)
440 { DoDrawFilledText(str
, x
, y
, backgroundBrush
); }
442 void DrawText( const wxString
&str
, wxDouble x
, wxDouble y
,
443 wxDouble angle
, const wxGraphicsBrush
& backgroundBrush
)
444 { DoDrawRotatedFilledText(str
, x
, y
, angle
, backgroundBrush
); }
447 virtual void GetTextExtent( const wxString
&text
, wxDouble
*width
, wxDouble
*height
,
448 wxDouble
*descent
, wxDouble
*externalLeading
) const = 0;
450 virtual void GetPartialTextExtents(const wxString
& text
, wxArrayDouble
& widths
) const = 0;
457 virtual void DrawBitmap( const wxGraphicsBitmap
&bmp
, wxDouble x
, wxDouble y
, wxDouble w
, wxDouble h
) = 0;
460 virtual void DrawBitmap( const wxBitmap
&bmp
, wxDouble x
, wxDouble y
, wxDouble w
, wxDouble h
) = 0;
462 virtual void DrawIcon( const wxIcon
&icon
, wxDouble x
, wxDouble y
, wxDouble w
, wxDouble h
) = 0;
465 // convenience methods
468 // strokes a single line
469 virtual void StrokeLine( wxDouble x1
, wxDouble y1
, wxDouble x2
, wxDouble y2
);
471 // stroke lines connecting each of the points
472 virtual void StrokeLines( size_t n
, const wxPoint2DDouble
*points
);
474 // stroke disconnected lines from begin to end points
475 virtual void StrokeLines( size_t n
, const wxPoint2DDouble
*beginPoints
, const wxPoint2DDouble
*endPoints
);
478 virtual void DrawLines( size_t n
, const wxPoint2DDouble
*points
, wxPolygonFillMode fillStyle
= wxODDEVEN_RULE
);
481 virtual void DrawRectangle( wxDouble x
, wxDouble y
, wxDouble w
, wxDouble h
);
484 virtual void DrawEllipse( wxDouble x
, wxDouble y
, wxDouble w
, wxDouble h
);
486 // draws a rounded rectangle
487 virtual void DrawRoundedRectangle( wxDouble x
, wxDouble y
, wxDouble w
, wxDouble h
, wxDouble radius
);
489 // wrappers using wxPoint2DDouble TODO
491 // helper to determine if a 0.5 offset should be applied for the drawing operation
492 virtual bool ShouldOffset() const { return false; }
497 wxGraphicsBrush m_brush
;
498 wxGraphicsFont m_font
;
499 wxRasterOperationMode m_logicalFunction
;
502 // implementations of overloaded public functions: we use different names
503 // for them to avoid the virtual function hiding problems in the derived
505 virtual void DoDrawText(const wxString
& str
, wxDouble x
, wxDouble y
) = 0;
506 virtual void DoDrawRotatedText(const wxString
& str
, wxDouble x
, wxDouble y
,
508 virtual void DoDrawFilledText(const wxString
& str
, wxDouble x
, wxDouble y
,
509 const wxGraphicsBrush
& backgroundBrush
);
510 virtual void DoDrawRotatedFilledText(const wxString
& str
,
511 wxDouble x
, wxDouble y
,
513 const wxGraphicsBrush
& backgroundBrush
);
515 wxDECLARE_NO_COPY_CLASS(wxGraphicsContext
);
516 DECLARE_ABSTRACT_CLASS(wxGraphicsContext
)
522 // A graphics figure allows to cache path, pen etc creations, also will be a basis for layering/grouping elements
525 class WXDLLIMPEXP_CORE wxGraphicsFigure
: public wxGraphicsObject
528 wxGraphicsFigure(wxGraphicsRenderer
* renderer
);
530 virtual ~wxGraphicsFigure();
532 void SetPath( wxGraphicsMatrix
* matrix
);
534 void SetMatrix( wxGraphicsPath
* path
);
536 // draws this object on the context
537 virtual void Draw( wxGraphicsContext
* cg
);
539 // returns the path of this object
540 wxGraphicsPath
* GetPath() { return m_path
; }
542 // returns the transformation matrix of this object, may be null if there is no transformation necessary
543 wxGraphicsMatrix
* GetMatrix() { return m_matrix
; }
546 wxGraphicsMatrix
* m_matrix
;
547 wxGraphicsPath
* m_path
;
549 DECLARE_DYNAMIC_CLASS(wxGraphicsFigure
)
555 // The graphics renderer is the instance corresponding to the rendering engine used, eg there is ONE core graphics renderer
556 // instance on OSX. This instance is pointed back to by all objects created by it. Therefore you can create eg additional
557 // paths at any point from a given matrix etc.
560 class WXDLLIMPEXP_CORE wxGraphicsRenderer
: public wxObject
563 wxGraphicsRenderer() {}
565 virtual ~wxGraphicsRenderer() {}
567 static wxGraphicsRenderer
* GetDefaultRenderer();
571 virtual wxGraphicsContext
* CreateContext( const wxWindowDC
& dc
) = 0;
572 virtual wxGraphicsContext
* CreateContext( const wxMemoryDC
& dc
) = 0;
573 #if wxUSE_PRINTING_ARCHITECTURE
574 virtual wxGraphicsContext
* CreateContext( const wxPrinterDC
& dc
) = 0;
577 virtual wxGraphicsContext
* CreateContextFromNativeContext( void * context
) = 0;
579 virtual wxGraphicsContext
* CreateContextFromNativeWindow( void * window
) = 0;
581 virtual wxGraphicsContext
* CreateContext( wxWindow
* window
) = 0;
583 // create a context that can be used for measuring texts only, no drawing allowed
584 virtual wxGraphicsContext
* CreateMeasuringContext() = 0;
588 virtual wxGraphicsPath
CreatePath() = 0;
592 virtual wxGraphicsMatrix
CreateMatrix( wxDouble a
=1.0, wxDouble b
=0.0, wxDouble c
=0.0, wxDouble d
=1.0,
593 wxDouble tx
=0.0, wxDouble ty
=0.0) = 0;
597 virtual wxGraphicsPen
CreatePen(const wxPen
& pen
) = 0;
599 virtual wxGraphicsBrush
CreateBrush(const wxBrush
& brush
) = 0;
601 // sets the brush to a linear gradient, starting at (x1,y1) with color c1 to (x2,y2) with color c2
602 virtual wxGraphicsBrush
CreateLinearGradientBrush( wxDouble x1
, wxDouble y1
, wxDouble x2
, wxDouble y2
,
603 const wxColour
&c1
, const wxColour
&c2
) = 0;
605 // sets the brush to a radial gradient originating at (xo,yc) with color oColor and ends on a circle around (xc,yc)
606 // with radius r and color cColor
607 virtual wxGraphicsBrush
CreateRadialGradientBrush( wxDouble xo
, wxDouble yo
, wxDouble xc
, wxDouble yc
, wxDouble radius
,
608 const wxColour
&oColor
, const wxColour
&cColor
) = 0;
611 virtual wxGraphicsFont
CreateFont( const wxFont
&font
, const wxColour
&col
= *wxBLACK
) = 0;
614 // create a native bitmap representation
615 virtual wxGraphicsBitmap
CreateBitmap( const wxBitmap
&bitmap
) = 0;
617 // create a subimage from a native image representation
618 virtual wxGraphicsBitmap
CreateSubBitmap( const wxGraphicsBitmap
&bitmap
, wxDouble x
, wxDouble y
, wxDouble w
, wxDouble h
) = 0;
623 wxDECLARE_NO_COPY_CLASS(wxGraphicsRenderer
);
624 DECLARE_ABSTRACT_CLASS(wxGraphicsRenderer
)
629 #endif // _WX_GRAPHICS_H_