1 \section{\class{wxSVGFileDC
}}\label{wxsvgfiledc
}
3 A wxSVGFileDC is a
{\it device context
} onto which graphics and text can be drawn, and the output
4 produced as a vector file, in the SVG format
5 (see
\urlref{W3C specifications
}{http://www.w3.org/TR/
2001/REC-SVG-
20010904/
}).
6 This format can be read by a range of programs, including a Netscape plugin (Adobe), full details
7 in the
\urlref{SVG Implementation and Resource Directory
}{http://www.svgi.org
}.
8 Vector formats may often be smaller than raster formats.
10 The intention behind wxSVGFileDC is that it can be used to produce a file corresponding
11 to the screen display context, wxSVGFileDC, by passing the wxSVGFileDC as a parameter instead of a wxSVGFileDC. Thus the wxSVGFileDC is a write-only class.
13 As the wxSVGFileDC is a vector format, raster operations like GetPixel are unlikely to be supported.
14 However, the SVG specification allows for PNG format raster files to be embedded in the SVG, and so
15 bitmaps, icons and blit operations into the wxSVGFileDC are supported.
17 A more substantial SVG library (for reading and writing) is available at the
18 \urlref{wxArt2D website
}{http://wxart2d.sourceforge.net/
}.
20 \wxheading{Derived from
}
24 \wxheading{Include files
}
30 \helpref{wxCore
}{librarieslist
}
34 %\helpref{Overview}{dcoverview}
37 \latexignore{\rtfignore{\wxheading{Members
}}}
39 \membersection{wxSVGFileDC::wxSVGFileDC
}\label{wxsvgfiledcctor
}
41 \func{}{wxSVGFileDC
}{\param{wxString
}{ f
}}
43 \func{}{wxSVGFileDC
}{\param{wxString
}{ f
},
\param{int
}{ Width
},
\param{int
}{ Height
}}
45 \func{}{wxSVGFileDC
}{\param{wxString
}{ f
},
\param{int
}{ Width
},
\param{int
}{ Height
},
\param{float
}{ dpi
}}
48 a filename
{\it f
} with default size
340x240 at
72.0 dots per inch (a frequent screen resolution).
49 a filename
{\it f
} with size
{\it Width
} by
{\it Height
} at
72.0 dots per inch
50 a filename
{\it f
} with size
{\it Width
} by
{\it Height
} at
{\it dpi
} resolution.
52 \membersection{wxSVGFileDC::
\destruct{wxSVGFileDC
}}\label{wxsvgfiledcdtor
}
54 \func{}{\destruct{wxSVGFileDC
}}{\void}
58 \membersection{wxSVGFileDC::BeginDrawing
}\label{wxsvgfiledcbegindrawing
}
62 \membersection{wxSVGFileDC::Blit
}\label{wxsvgfiledcblit
}
64 \func{bool
}{Blit
}{\param{wxCoord
}{ xdest
},
\param{wxCoord
}{ ydest
},
\param{wxCoord
}{ width
},
\param{wxCoord
}{ height
},
65 \param{wxSVGFileDC*
}{source
},
\param{wxCoord
}{ xsrc
},
\param{wxCoord
}{ ysrc
},
\param{int
}{ logicalFunc = wxCOPY
},
66 \param{bool
}{useMask = FALSE
},
\param{wxCoord
}{ xsrcMask = -
1},
\param{wxCoord
}{ ysrcMask = -
1}}
68 As wxDC: Copy from a source DC to this DC, specifying the destination
69 coordinates, size of area to copy, source DC, source coordinates,
70 logical function, whether to use a bitmap mask, and mask source position.
72 \membersection{wxSVGFileDC::CalcBoundingBox
}\label{wxsvgfiledccalcboundingbox
}
74 \func{void
}{CalcBoundingBox
}{\param{wxCoord
}{x
},
\param{wxCoord
}{y
}}
76 Adds the specified point to the bounding box which can be retrieved with
77 \helpref{MinX
}{wxdcminx
},
\helpref{MaxX
}{wxdcmaxx
} and
78 \helpref{MinY
}{wxdcminy
},
\helpref{MaxY
}{wxdcmaxy
} functions.
81 \membersection{wxSVGFileDC::Clear
}\label{wxsvgfiledcclear
}
83 \func{void
}{Clear
}{\void}
85 This makes no sense in wxSVGFileDC and does nothing
88 \membersection{wxSVGFileDC::CrossHair
}\label{wxsvgfiledccrosshair
}
90 \func{void
}{CrossHair
}{\param{wxCoord
}{ x
},
\param{wxCoord
}{ y
}}
94 \membersection{wxSVGFileDC::DestroyClippingRegion
}\label{wxsvgfiledcdestroyclippingregion
}
96 \func{void
}{DestroyClippingRegion
}{\void}
100 \membersection{wxSVGFileDC::DeviceToLogicalX
}\label{wxsvgfiledcdevicetologicalx
}
102 \func{wxCoord
}{DeviceToLogicalX
}{\param{wxCoord
}{ x
}}
104 Convert device X coordinate to logical coordinate, using the current
107 \membersection{wxSVGFileDC::DeviceToLogicalXRel
}\label{wxsvgfiledcdevicetologicalxrel
}
109 \func{wxCoord
}{DeviceToLogicalXRel
}{\param{wxCoord
}{ x
}}
111 Convert device X coordinate to relative logical coordinate, using the current
112 mapping mode but ignoring the x axis orientation.
113 Use this function for converting a width, for example.
115 \membersection{wxSVGFileDC::DeviceToLogicalY
}\label{wxsvgfiledcdevicetologicaly
}
117 \func{wxCoord
}{DeviceToLogicalY
}{\param{wxCoord
}{ y
}}
119 Converts device Y coordinate to logical coordinate, using the current
122 \membersection{wxSVGFileDC::DeviceToLogicalYRel
}\label{wxsvgfiledcdevicetologicalyrel
}
124 \func{wxCoord
}{DeviceToLogicalYRel
}{\param{wxCoord
}{ y
}}
126 Convert device Y coordinate to relative logical coordinate, using the current
127 mapping mode but ignoring the y axis orientation.
128 Use this function for converting a height, for example.
130 \membersection{wxSVGFileDC::DrawArc
}\label{wxsvgfiledcdrawarc
}
132 \func{void
}{DrawArc
}{\param{wxCoord
}{ x1
},
\param{wxCoord
}{ y1
},
\param{wxCoord
}{ x2
},
\param{wxCoord
}{ y2
},
\param{wxCoord
}{ xc
},
\param{wxCoord
}{ yc
}}
134 Draws an arc of a circle, centred on (
{\it xc, yc
}), with starting point (
{\it x1, y1
})
135 and ending at (
{\it x2, y2
}). The current pen is used for the outline
136 and the current brush for filling the shape.
138 The arc is drawn in an anticlockwise direction from the start point to the end point.
140 \membersection{wxSVGFileDC::DrawBitmap
}\label{wxsvgfiledcdrawbitmap
}
142 \func{void
}{DrawBitmap
}{\param{const wxBitmap\&
}{ bitmap
},
\param{wxCoord
}{ x
},
\param{wxCoord
}{ y
},
\param{bool
}{ transparent
}}
144 Draw a bitmap on the device context at the specified point. If
{\it transparent
} is true and the bitmap has
145 a transparency mask, the bitmap will be drawn transparently.
147 When drawing a mono-bitmap, the current text foreground colour will be used to draw the foreground
148 of the bitmap (all bits set to
1), and the current text background colour to draw the background
149 (all bits set to
0). See also
\helpref{SetTextForeground
}{wxdcsettextforeground
},
150 \helpref{SetTextBackground
}{wxdcsettextbackground
} and
\helpref{wxMemoryDC
}{wxmemorydc
}.
152 \membersection{wxSVGFileDC::DrawCheckMark
}\label{wxsvgfiledcdrawcheckmark
}
154 \func{void
}{DrawCheckMark
}{\param{wxCoord
}{ x
},
\param{wxCoord
}{ y
},
\param{wxCoord
}{ width
},
\param{wxCoord
}{ height
}}
156 \func{void
}{DrawCheckMark
}{\param{const wxRect \&
}{rect
}}
158 Draws a check mark inside the given rectangle.
160 \membersection{wxSVGFileDC::DrawCircle
}\label{wxsvgfiledcdrawcircle
}
162 \func{void
}{DrawCircle
}{\param{wxCoord
}{ x
},
\param{wxCoord
}{ y
},
\param{wxCoord
}{ radius
}}
164 \func{void
}{DrawCircle
}{\param{const wxPoint\&
}{ pt
},
\param{wxCoord
}{ radius
}}
166 Draws a circle with the given centre and radius.
170 \helpref{DrawEllipse
}{wxdcdrawellipse
}
172 \membersection{wxSVGFileDC::DrawEllipse
}\label{wxsvgfiledcdrawellipse
}
174 \func{void
}{DrawEllipse
}{\param{wxCoord
}{ x
},
\param{wxCoord
}{ y
},
\param{wxCoord
}{ width
},
\param{wxCoord
}{ height
}}
176 \func{void
}{DrawEllipse
}{\param{const wxPoint\&
}{ pt
},
\param{const wxSize\&
}{ size
}}
178 \func{void
}{DrawEllipse
}{\param{const wxRect\&
}{ rect
}}
180 Draws an ellipse contained in the rectangle specified either with the given top
181 left corner and the given size or directly. The current pen is used for the
182 outline and the current brush for filling the shape.
186 \helpref{DrawCircle
}{wxdcdrawcircle
}
188 \membersection{wxSVGFileDC::DrawEllipticArc
}\label{wxsvgfiledcdrawellipticarc
}
190 \func{void
}{DrawEllipticArc
}{\param{wxCoord
}{ x
},
\param{wxCoord
}{ y
},
\param{wxCoord
}{ width
},
\param{wxCoord
}{ height
},
191 \param{double
}{ start
},
\param{double
}{ end
}}
193 Draws an arc of an ellipse. The current pen is used for drawing the arc and
194 the current brush is used for drawing the pie.
196 {\it x
} and
{\it y
} specify the x and y coordinates of the upper-left corner of the rectangle that contains
199 {\it width
} and
{\it height
} specify the width and height of the rectangle that contains
202 {\it start
} and
{\it end
} specify the start and end of the arc relative to the three-o'clock
203 position from the center of the rectangle. Angles are specified
204 in degrees (
360 is a complete circle). Positive values mean
205 counter-clockwise motion. If
{\it start
} is equal to
{\it end
}, a
206 complete ellipse will be drawn.
208 \membersection{wxSVGFileDC::DrawIcon
}\label{wxsvgfiledcdrawicon
}
210 \func{void
}{DrawIcon
}{\param{const wxIcon\&
}{ icon
},
\param{wxCoord
}{ x
},
\param{wxCoord
}{ y
}}
212 Draw an icon on the display (does nothing if the device context is PostScript).
213 This can be the simplest way of drawing bitmaps on a window.
215 \membersection{wxSVGFileDC::DrawLine
}\label{wxsvgfiledcdrawline
}
217 \func{void
}{DrawLine
}{\param{wxCoord
}{ x1
},
\param{wxCoord
}{ y1
},
\param{wxCoord
}{ x2
},
\param{wxCoord
}{ y2
}}
219 Draws a line from the first point to the second. The current pen is used
220 for drawing the line.
222 \membersection{wxSVGFileDC::DrawLines
}\label{wxsvgfiledcdrawlines
}
224 \func{void
}{DrawLines
}{\param{int
}{ n
},
\param{wxPoint
}{ points
[]},
\param{wxCoord
}{ xoffset =
0},
\param{wxCoord
}{ yoffset =
0}}
226 \func{void
}{DrawLines
}{\param{wxList *
}{points
},
\param{wxCoord
}{ xoffset =
0},
\param{wxCoord
}{ yoffset =
0}}
228 Draws lines using an array of
{\it points
} of size
{\it n
}, or list of
229 pointers to points, adding the optional offset coordinate. The current
230 pen is used for drawing the lines. The programmer is responsible for
231 deleting the list of points.
233 \membersection{wxSVGFileDC::DrawPolygon
}\label{wxsvgfiledcdrawpolygon
}
235 \func{void
}{DrawPolygon
}{\param{int
}{ n
},
\param{wxPoint
}{ points
[]},
\param{wxCoord
}{ xoffset =
0},
\param{wxCoord
}{ yoffset =
0},\\
236 \param{int
}{fill
\_style = wxODDEVEN
\_RULE}}
238 \func{void
}{DrawPolygon
}{\param{wxList *
}{points
},
\param{wxCoord
}{ xoffset =
0},
\param{wxCoord
}{ yoffset =
0},\\
239 \param{int
}{fill
\_style = wxODDEVEN
\_RULE}}
241 Draws a filled polygon using an array of
{\it points
} of size
{\it n
},
242 or list of pointers to points, adding the optional offset coordinate.
244 The last argument specifies the fill rule:
{\bf wxODDEVEN
\_RULE} (the
245 default) or
{\bf wxWINDING
\_RULE}.
247 The current pen is used for drawing the outline, and the current brush
248 for filling the shape. Using a transparent brush suppresses filling.
249 The programmer is responsible for deleting the list of points.
251 Note that wxWindows automatically closes the first and last points.
254 \membersection{wxSVGFileDC::DrawPoint
}\label{wxsvgfiledcdrawpoint
}
256 \func{void
}{DrawPoint
}{\param{wxCoord
}{ x
},
\param{wxCoord
}{ y
}}
258 Draws a point using the current pen.
260 \membersection{wxSVGFileDC::DrawRectangle
}\label{wxsvgfiledcdrawrectangle
}
262 \func{void
}{DrawRectangle
}{\param{wxCoord
}{ x
},
\param{wxCoord
}{ y
},
\param{wxCoord
}{ width
},
\param{wxCoord
}{ height
}}
264 Draws a rectangle with the given top left corner, and with the given
265 size. The current pen is used for the outline and the current brush
266 for filling the shape.
268 \membersection{wxSVGFileDC::DrawRotatedText
}\label{wxsvgfiledcdrawrotatedtext
}
270 \func{void
}{DrawRotatedText
}{\param{const wxString\&
}{text
},
\param{wxCoord
}{ x
},
\param{wxCoord
}{ y
},
\param{double
}{ angle
}}
272 Draws the text rotated by
{\it angle
} degrees.
274 The wxMSW wxDC and wxSVGFileDC rotate the text around slightly different points, depending on the size of the font
276 \membersection{wxSVGFileDC::DrawRoundedRectangle
}\label{wxsvgfiledcdrawroundedrectangle
}
278 \func{void
}{DrawRoundedRectangle
}{\param{wxCoord
}{ x
},
\param{wxCoord
}{ y
},
\param{wxCoord
}{ width
},
\param{wxCoord
}{ height
},
\param{double
}{ radius =
20}}
280 Draws a rectangle with the given top left corner, and with the given
281 size. The corners are quarter-circles using the given radius. The
282 current pen is used for the outline and the current brush for filling
285 If
{\it radius
} is positive, the value is assumed to be the
286 radius of the rounded corner. If
{\it radius
} is negative,
287 the absolute value is assumed to be the
{\it proportion
} of the smallest
288 dimension of the rectangle. This means that the corner can be
289 a sensible size relative to the size of the rectangle, and also avoids
290 the strange effects X produces when the corners are too big for
293 \membersection{wxSVGFileDC::DrawSpline
}\label{wxsvgfiledcdrawspline
}
295 \func{void
}{DrawSpline
}{\param{wxList *
}{points
}}
297 Draws a spline between all given control points, using the current
298 pen. Doesn't delete the wxList and contents. The spline is drawn
299 using a series of lines, using an algorithm taken from the X drawing
302 \func{void
}{DrawSpline
}{\param{wxCoord
}{ x1
},
\param{wxCoord
}{ y1
},
\param{wxCoord
}{ x2
},
\param{wxCoord
}{ y2
},
\param{wxCoord
}{ x3
},
\param{wxCoord
}{ y3
}}
304 Draws a three-point spline using the current pen.
306 \membersection{wxSVGFileDC::DrawText
}\label{wxsvgfiledcdrawtext
}
308 \func{void
}{DrawText
}{\param{const wxString\&
}{text
},
\param{wxCoord
}{ x
},
\param{wxCoord
}{ y
}}
310 Draws a text string at the specified point, using the current text font,
311 and the current text foreground and background colours.
313 The coordinates refer to the top-left corner of the rectangle bounding
314 the string. See
\helpref{wxSVGFileDC::GetTextExtent
}{wxdcgettextextent
} for how
315 to get the dimensions of a text string, which can be used to position the
320 \membersection{wxSVGFileDC::EndDoc
}\label{wxsvgfiledcenddoc
}
322 \func{void
}{EndDoc
}{\void}
326 \membersection{wxSVGFileDC::EndDrawing
}\label{wxsvgfiledcenddrawing
}
328 \func{void
}{EndDrawing
}{\void}
332 \membersection{wxSVGFileDC::EndPage
}\label{wxsvgfiledcendpage
}
334 \func{void
}{EndPage
}{\void}
338 \membersection{wxSVGFileDC::FloodFill
}\label{wxsvgfiledcfloodfill
}
340 \func{void
}{FloodFill
}{\param{wxCoord
}{ x
},
\param{wxCoord
}{ y
},
\param{const wxColour\&
}{ colour
},
\param{int
}{ style=wxFLOOD
\_SURFACE}}
344 \membersection{wxSVGFileDC::GetBackground
}\label{wxsvgfiledcgetbackground
}
346 \func{wxBrush\&
}{GetBackground
}{\void}
348 \constfunc{const wxBrush\&
}{GetBackground
}{\void}
350 Gets the brush used for painting the background (see
\helpref{wxSVGFileDC::SetBackground
}{wxdcsetbackground
}).
352 \membersection{wxSVGFileDC::GetBackgroundMode
}\label{wxsvgfiledcgetbackgroundmode
}
354 \constfunc{int
}{GetBackgroundMode
}{\void}
356 Returns the current background mode:
{\tt wxSOLID
} or
{\tt wxTRANSPARENT
}.
360 \helpref{SetBackgroundMode
}{wxdcsetbackgroundmode
}
362 \membersection{wxSVGFileDC::GetBrush
}\label{wxsvgfiledcgetbrush
}
364 \func{wxBrush\&
}{GetBrush
}{\void}
366 \constfunc{const wxBrush\&
}{GetBrush
}{\void}
368 Gets the current brush (see
\helpref{wxSVGFileDC::SetBrush
}{wxdcsetbrush
}).
370 \membersection{wxSVGFileDC::GetCharHeight
}\label{wxsvgfiledcgetcharheight
}
372 \func{wxCoord
}{GetCharHeight
}{\void}
374 Gets the character height of the currently set font.
376 \membersection{wxSVGFileDC::GetCharWidth
}\label{wxsvgfiledcgetcharwidth
}
378 \func{wxCoord
}{GetCharWidth
}{\void}
380 Gets the average character width of the currently set font.
382 \membersection{wxSVGFileDC::GetClippingBox
}\label{wxsvgfiledcgetclippingbox
}
384 \func{void
}{GetClippingBox
}{\param{wxCoord
}{ *x
},
\param{wxCoord
}{ *y
},
\param{wxCoord
}{ *width
},
\param{wxCoord
}{ *height
}}
388 \membersection{wxSVGFileDC::GetFont
}\label{wxsvgfiledcgetfont
}
390 \func{wxFont\&
}{GetFont
}{\void}
392 \constfunc{const wxFont\&
}{GetFont
}{\void}
394 Gets the current font (see
\helpref{wxSVGFileDC::SetFont
}{wxdcsetfont
}).
396 \membersection{wxSVGFileDC::GetLogicalFunction
}\label{wxsvgfiledcgetlogicalfunction
}
398 \func{int
}{GetLogicalFunction
}{\void}
400 Gets the current logical function (see
\helpref{wxSVGFileDC::SetLogicalFunction
}{wxdcsetlogicalfunction
}).
402 \membersection{wxSVGFileDC::GetMapMode
}\label{wxsvgfiledcgetmapmode
}
404 \func{int
}{GetMapMode
}{\void}
406 Gets the
{\it mapping mode
} for the device context (see
\helpref{wxSVGFileDC::SetMapMode
}{wxdcsetmapmode
}).
408 \membersection{wxSVGFileDC::GetPen
}\label{wxsvgfiledcgetpen
}
410 \func{wxPen\&
}{GetPen
}{\void}
412 \constfunc{const wxPen\&
}{GetPen
}{\void}
414 Gets the current pen (see
\helpref{wxSVGFileDC::SetPen
}{wxdcsetpen
}).
416 \membersection{wxSVGFileDC::GetPixel
}\label{wxsvgfiledcgetpixel
}
418 \func{bool
}{GetPixel
}{\param{wxCoord
}{ x
},
\param{wxCoord
}{ y
},
\param{wxColour *
}{colour
}}
422 \membersection{wxSVGFileDC::GetSize
}\label{wxsvgfiledcgetsize
}
424 \func{void
}{GetSize
}{\param{wxCoord *
}{width
},
\param{wxCoord *
}{height
}}
427 For a Windows printer device context, this gets the horizontal and vertical
430 \membersection{wxSVGFileDC::GetTextBackground
}\label{wxsvgfiledcgettextbackground
}
432 \func{wxColour\&
}{GetTextBackground
}{\void}
434 \constfunc{const wxColour\&
}{GetTextBackground
}{\void}
436 Gets the current text background colour (see
\helpref{wxSVGFileDC::SetTextBackground
}{wxdcsettextbackground
}).
438 \membersection{wxSVGFileDC::GetTextExtent
}\label{wxsvgfiledcgettextextent
}
440 \func{void
}{GetTextExtent
}{\param{const wxString\&
}{string
},
\param{wxCoord *
}{w
},
\param{wxCoord *
}{h
},\\
441 \param{wxCoord *
}{descent = NULL
},
\param{wxCoord *
}{externalLeading = NULL
},
\param{wxFont *
}{font = NULL
}}
443 Gets the dimensions of the string using the currently selected font.
444 \rtfsp{\it string
} is the text string to measure,
{\it w
} and
{\it h
} are
445 the total width and height respectively,
{\it descent
} is the
446 dimension from the baseline of the font to the bottom of the
447 descender, and
{\it externalLeading
} is any extra vertical space added
448 to the font by the font designer (usually is zero).
450 The optional parameter
{\it font
} specifies an alternative
451 to the currently selected font: but note that this does not
452 yet work under Windows, so you need to set a font for
453 the device context first.
455 See also
\helpref{wxFont
}{wxfont
},
\helpref{wxSVGFileDC::SetFont
}{wxdcsetfont
}.
457 \membersection{wxSVGFileDC::GetTextForeground
}\label{wxsvgfiledcgettextforeground
}
459 \func{wxColour\&
}{GetTextForeground
}{\void}
461 \constfunc{const wxColour\&
}{GetTextForeground
}{\void}
463 Gets the current text foreground colour (see
\helpref{wxSVGFileDC::SetTextForeground
}{wxdcsettextforeground
}).
466 \membersection{wxSVGFileDC::GetUserScale
}\label{wxsvgfiledcgetuserscale
}
468 \func{void
}{GetUserScale
}{\param{double
}{ *x
},
\param{double
}{ *y
}}
470 Gets the current user scale factor (set by
\helpref{SetUserScale
}{wxdcsetuserscale
}).
472 \membersection{wxSVGFileDC::LogicalToDeviceX
}\label{wxsvgfiledclogicaltodevicex
}
474 \func{wxCoord
}{LogicalToDeviceX
}{\param{wxCoord
}{ x
}}
476 Converts logical X coordinate to device coordinate, using the current
479 \membersection{wxSVGFileDC::LogicalToDeviceXRel
}\label{wxsvgfiledclogicaltodevicexrel
}
481 \func{wxCoord
}{LogicalToDeviceXRel
}{\param{wxCoord
}{ x
}}
483 Converts logical X coordinate to relative device coordinate, using the current
484 mapping mode but ignoring the x axis orientation.
485 Use this for converting a width, for example.
487 \membersection{wxSVGFileDC::LogicalToDeviceY
}\label{wxsvgfiledclogicaltodevicey
}
489 \func{wxCoord
}{LogicalToDeviceY
}{\param{wxCoord
}{ y
}}
491 Converts logical Y coordinate to device coordinate, using the current
494 \membersection{wxSVGFileDC::LogicalToDeviceYRel
}\label{wxsvgfiledclogicaltodeviceyrel
}
496 \func{wxCoord
}{LogicalToDeviceYRel
}{\param{wxCoord
}{ y
}}
498 Converts logical Y coordinate to relative device coordinate, using the current
499 mapping mode but ignoring the y axis orientation.
500 Use this for converting a height, for example.
502 \membersection{wxSVGFileDC::MaxX
}\label{wxsvgfiledcmaxx
}
504 \func{wxCoord
}{MaxX
}{\void}
506 Gets the maximum horizontal extent used in drawing commands so far.
508 \membersection{wxSVGFileDC::MaxY
}\label{wxsvgfiledcmaxy
}
510 \func{wxCoord
}{MaxY
}{\void}
512 Gets the maximum vertical extent used in drawing commands so far.
514 \membersection{wxSVGFileDC::MinX
}\label{wxsvgfiledcminx
}
516 \func{wxCoord
}{MinX
}{\void}
518 Gets the minimum horizontal extent used in drawing commands so far.
520 \membersection{wxSVGFileDC::MinY
}\label{wxsvgfiledcminy
}
522 \func{wxCoord
}{MinY
}{\void}
524 Gets the minimum vertical extent used in drawing commands so far.
526 \membersection{wxSVGFileDC::Ok
}\label{wxsvgfiledcok
}
528 \func{bool
}{Ok
}{\void}
530 Returns true if the DC is ok to use; False values arise from being unable to
533 \membersection{wxSVGFileDC::ResetBoundingBox
}\label{wxsvgfiledcresetboundingbox
}
535 \func{void
}{ResetBoundingBox
}{\void}
537 Resets the bounding box: after a call to this function, the bounding box
538 doesn't contain anything.
542 \helpref{CalcBoundingBox
}{wxdccalcboundingbox
}
544 \membersection{wxSVGFileDC::SetAxisOrientation
}\label{wxsvgfiledcsetaxisorientation
}
546 \func{void
}{SetAxisOrientation
}{\param{bool
}{ xLeftRight
},
547 \param{bool
}{ yBottomUp
}}
549 Sets the x and y axis orientation (i.e., the direction from lowest to
550 highest values on the axis). The default orientation is the natural
551 orientation, e.g. x axis from left to right and y axis from bottom up.
553 \wxheading{Parameters
}
555 \docparam{xLeftRight
}{True to set the x axis orientation to the natural
556 left to right orientation, false to invert it.
}
558 \docparam{yBottomUp
}{True to set the y axis orientation to the natural
559 bottom up orientation, false to invert it.
}
561 \membersection{wxSVGFileDC::SetDeviceOrigin
}\label{wxsvgfiledcsetdeviceorigin
}
563 \func{void
}{SetDeviceOrigin
}{\param{wxCoord
}{ x
},
\param{wxCoord
}{ y
}}
565 Sets the device origin (i.e., the origin in pixels after scaling has been
568 This function may be useful in Windows printing
569 operations for placing a graphic on a page.
571 \membersection{wxSVGFileDC::SetBackground
}\label{wxsvgfiledcsetbackground
}
573 \func{void
}{SetBackground
}{\param{const wxBrush\&
}{brush
}}
575 Sets the current background brush for the DC.
577 \membersection{wxSVGFileDC::SetBackgroundMode
}\label{wxsvgfiledcsetbackgroundmode
}
579 \func{void
}{SetBackgroundMode
}{\param{int
}{ mode
}}
581 {\it mode
} may be one of wxSOLID and wxTRANSPARENT. This setting determines
582 whether text will be drawn with a background colour or not.
584 \membersection{wxSVGFileDC::SetClippingRegion
}\label{wxsvgfiledcsetclippingregion
}
586 \func{void
}{SetClippingRegion
}{\param{wxCoord
}{ x
},
\param{wxCoord
}{ y
},
\param{wxCoord
}{ width
},
\param{wxCoord
}{ height
}}
588 \func{void
}{SetClippingRegion
}{\param{const wxPoint\&
}{pt
},
\param{const wxSize\&
}{sz
}}
590 \func{void
}{SetClippingRegion
}{\param{const wxRect\&
}{ rect
}}
592 \func{void
}{SetClippingRegion
}{\param{const wxRegion\&
}{ region
}}
597 \membersection{wxSVGFileDC::SetPalette
}\label{wxsvgfiledcsetpalette
}
599 \func{void
}{SetPalette
}{\param{const wxPalette\&
}{palette
}}
603 \membersection{wxSVGFileDC::SetBrush
}\label{wxsvgfiledcsetbrush
}
605 \func{void
}{SetBrush
}{\param{const wxBrush\&
}{brush
}}
607 Sets the current brush for the DC.
609 If the argument is wxNullBrush, the current brush is selected out of the device
610 context, and the original brush restored, allowing the current brush to
613 See also
\helpref{wxBrush
}{wxbrush
}.
615 See also
\helpref{wxMemoryDC
}{wxmemorydc
} for the interpretation of colours
616 when drawing into a monochrome bitmap.
618 \membersection{wxSVGFileDC::SetFont
}\label{wxsvgfiledcsetfont
}
620 \func{void
}{SetFont
}{\param{const wxFont\&
}{font
}}
622 Sets the current font for the DC. It must be a valid font, in particular you
623 should not pass
{\tt wxNullFont
} to this method.
625 See also
\helpref{wxFont
}{wxfont
}.
627 \membersection{wxSVGFileDC::SetLogicalFunction
}\label{wxsvgfiledcsetlogicalfunction
}
629 \func{void
}{SetLogicalFunction
}{\param{int
}{ function
}}
632 Only wxCOPY is avalaible; trying to set one of the othe values will fail
634 \membersection{wxSVGFileDC::SetMapMode
}\label{wxsvgfiledcsetmapmode
}
636 \func{void
}{SetMapMode
}{\param{int
}{ int
}}
638 The
{\it mapping mode
} of the device context defines the unit of
639 measurement used to convert logical units to device units. Note that
640 in X, text drawing isn't handled consistently with the mapping mode; a
641 font is always specified in point size. However, setting the
{\it
642 user scale
} (see
\helpref{wxSVGFileDC::SetUserScale
}{wxdcsetuserscale
}) scales the text appropriately. In
643 Windows, scaleable TrueType fonts are always used; in X, results depend
644 on availability of fonts, but usually a reasonable match is found.
646 Note that the coordinate origin should ideally be selectable, but for
647 now is always at the top left of the screen/printer.
649 Drawing to a Windows printer device context under UNIX
650 uses the current mapping mode, but mapping mode is currently ignored for
653 The mapping mode can be one of the following:
655 \begin{twocollist
}\itemsep=
0pt
656 \twocolitem{wxMM
\_TWIPS}{Each logical unit is
1/
20 of a point, or
1/
1440 of
658 \twocolitem{wxMM
\_POINTS}{Each logical unit is a point, or
1/
72 of an inch.
}
659 \twocolitem{wxMM
\_METRIC}{Each logical unit is
1 mm.
}
660 \twocolitem{wxMM
\_LOMETRIC}{Each logical unit is
1/
10 of a mm.
}
661 \twocolitem{wxMM
\_TEXT}{Each logical unit is
1 pixel.
}
664 \membersection{wxSVGFileDC::SetPen
}\label{wxsvgfiledcsetpen
}
666 \func{void
}{SetPen
}{\param{const wxPen\&
}{pen
}}
668 Sets the current pen for the DC.
670 If the argument is wxNullPen, the current pen is selected out of the device
671 context, and the original pen restored.
673 See also
\helpref{wxMemoryDC
}{wxmemorydc
} for the interpretation of colours
674 when drawing into a monochrome bitmap.
676 \membersection{wxSVGFileDC::SetTextBackground
}\label{wxsvgfiledcsettextbackground
}
678 \func{void
}{SetTextBackground
}{\param{const wxColour\&
}{colour
}}
680 Sets the current text background colour for the DC.
682 \membersection{wxSVGFileDC::SetTextForeground
}\label{wxsvgfiledcsettextforeground
}
684 \func{void
}{SetTextForeground
}{\param{const wxColour\&
}{colour
}}
686 Sets the current text foreground colour for the DC.
688 See also
\helpref{wxMemoryDC
}{wxmemorydc
} for the interpretation of colours
689 when drawing into a monochrome bitmap.
691 \membersection{wxSVGFileDC::SetUserScale
}\label{wxsvgfiledcsetuserscale
}
693 \func{void
}{SetUserScale
}{\param{double
}{ xScale
},
\param{double
}{ yScale
}}
695 Sets the user scaling factor, useful for applications which require
698 \membersection{wxSVGFileDC::StartDoc
}\label{wxsvgfiledcstartdoc
}
700 \func{bool
}{StartDoc
}{\param{const wxString\&
}{message
}}
704 \membersection{wxSVGFileDC::StartPage
}\label{wxsvgfiledcstartpage
}
706 \func{bool
}{StartPage
}{\void}