#include <wx/dcsvg.h>

The intention behind wxSVGFileDC is that it can be used to produce a file corresponding 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.
As the wxSVGFileDC is a vector format, raster operations like GetPixel() are unlikely to be supported. However, the SVG specification allows for PNG format raster files to be embedded in the SVG, and so bitmaps, icons and blit operations in wxSVGFileDC are supported.
A more substantial SVG library (for reading and writing) is available at the wxArt2D website <http://wxart2d.sourceforge.net/>.
Public Member Functions | |
| wxSVGFileDC (const wxString &filename, int width=320, int height=240, double dpi=72) | |
| virtual | ~wxSVGFileDC () |
| bool | Blit (wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height, wxDC *source, wxCoord xsrc, wxCoord ysrc, int rop=wxCOPY, bool useMask=false, wxCoord xsrcMask=wxDefaultCoord, wxCoord ysrcMask=wxDefaultCoord) |
| void | CalcBoundingBox (wxCoord x, wxCoord y) |
| void | Clear () |
| void | CrossHair (wxCoord x, wxCoord y) |
| void | DestroyClippingRegion () |
| wxCoord | DeviceToLogicalX (wxCoord x) const |
| wxCoord | DeviceToLogicalXRel (wxCoord x) const |
| wxCoord | DeviceToLogicalY (wxCoord y) const |
| wxCoord | DeviceToLogicalYRel (wxCoord y) const |
| void | DrawArc (wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2, wxCoord xc, wxCoord yc) |
| void | DrawBitmap (const wxBitmap &bitmap, wxCoord x, wxCoord y, bool useMask=false) |
| void | DrawEllipticArc (wxCoord x, wxCoord y, wxCoord width, wxCoord height, double start, double end) |
| void | DrawIcon (const wxIcon &icon, wxCoord x, wxCoord y) |
| void | DrawLine (wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2) |
| void | DrawPoint (wxCoord x, wxCoord y) |
| void | DrawRectangle (wxCoord x, wxCoord y, wxCoord width, wxCoord height) |
| void | DrawRotatedText (const wxString &text, wxCoord x, wxCoord y, double angle) |
| void | DrawRoundedRectangle (wxCoord x, wxCoord y, wxCoord width, wxCoord height, double radius=20) |
| void | DrawSpline (const wxPointList *points) |
| void | DrawSpline (wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2, wxCoord x3, wxCoord y3) |
| void | DrawText (const wxString &text, wxCoord x, wxCoord y) |
| void | EndDoc () |
| void | EndDrawing () |
| void | EndPage () |
| bool | FloodFill (wxCoord x, wxCoord y, const wxColour &colour, int style=wxFLOOD_SURFACE) |
| int | GetBackgroundMode () const |
| wxCoord | GetCharHeight () const |
| wxCoord | GetCharWidth () const |
| void | GetClippingBox (wxCoord *x, wxCoord *y, wxCoord *width, wxCoord *height) const |
| int | GetLogicalFunction () const |
| int | GetMapMode () const |
| bool | GetPixel (wxCoord x, wxCoord y, wxColour *colour) const |
| void | GetSize (wxCoord *width, wxCoord *height) |
| void | GetTextExtent (const wxString &string, wxCoord *w, wxCoord *h, wxCoord *descent=NULL, wxCoord *externalLeading=NULL, const wxFont *font=NULL) const |
| void | GetUserScale (double *x, double *y) const |
| wxCoord | LogicalToDeviceX (wxCoord x) const |
| wxCoord | LogicalToDeviceXRel (wxCoord x) const |
| wxCoord | LogicalToDeviceY (wxCoord y) const |
| wxCoord | LogicalToDeviceYRel (wxCoord y) const |
| wxCoord | MaxX () const |
| wxCoord | MaxY () const |
| wxCoord | MinX () const |
| wxCoord | MinY () const |
| bool | Ok () |
| void | ResetBoundingBox () |
| void | SetAxisOrientation (bool xLeftRight, bool yBottomUp) |
| void | SetBackground (const wxBrush &brush) |
| void | SetBackgroundMode (int mode) |
| void | SetBrush (const wxBrush &brush) |
| void | SetDeviceOrigin (wxCoord x, wxCoord y) |
| void | SetFont (const wxFont &font) |
| void | SetLogicalFunction (int function) |
| void | SetMapMode (int mode) |
| void | SetPalette (const wxPalette &palette) |
| void | SetPen (const wxPen &pen) |
| void | SetTextBackground (const wxColour &colour) |
| void | SetTextForeground (const wxColour &colour) |
| void | SetUserScale (double xScale, double yScale) |
| bool | StartDoc (const wxString &message) |
| void | DrawCheckMark (wxCoord x, wxCoord y, wxCoord width, wxCoord height) |
| void | DrawCheckMark (const wxRect &rect) |
| void | DrawCircle (wxCoord x, wxCoord y, wxCoord radius) |
| void | DrawCircle (const wxPoint &pt, wxCoord radius) |
| void | DrawEllipse (wxCoord x, wxCoord y, wxCoord width, wxCoord height) |
| void | DrawEllipse (const wxPoint &pt, const wxSize &size) |
| void | DrawEllipse (const wxRect &rect) |
| void | DrawLines (int n, wxPoint points[], wxCoord xoffset=0, wxCoord yoffset=0) |
| void | DrawLines (wxList *points, wxCoord xoffset=0, wxCoord yoffset=0) |
| void | DrawPolygon (int n, wxPoint points[], wxCoord xoffset=0, wxCoord yoffset=0, int fill_style=wxODDEVEN_RULE) |
| void | DrawPolygon (wxList *points, wxCoord xoffset=0, wxCoord yoffset=0, int fill_style=wxODDEVEN_RULE) |
| wxBrush | GetBackground () const |
| const wxBrush | GetBackground () const |
| wxBrush | GetBrush () const |
| const wxBrush | GetBrush () const |
| wxFont | GetFont () const |
| const wxFont | GetFont () const |
| wxPen | GetPen () const |
| const wxPen | GetPen () const |
| wxColour | GetTextBackground () const |
| const wxColour & | GetTextBackground () const |
| wxColour | GetTextForeground () const |
| const wxColour | GetTextForeground () const |
| void | SetClippingRegion (wxCoord x, wxCoord y, wxCoord width, wxCoord height) |
| void | SetClippingRegion (const wxPoint &pt, const wxSize &sz) |
| void | SetClippingRegion (const wxRect &rect) |
| void | SetClippingRegion (const wxRegion ®ion) |
| wxSVGFileDC::wxSVGFileDC | ( | const wxString & | filename, | |
| int | width = 320, |
|||
| int | height = 240, |
|||
| double | dpi = 72 | |||
| ) |
Initializes a wxSVGFileDC with the given f filename with the given Width and Height at dpi resolution.
| virtual wxSVGFileDC::~wxSVGFileDC | ( | ) | [virtual] |
Destructor.
| bool wxSVGFileDC::Blit | ( | wxCoord | xdest, | |
| wxCoord | ydest, | |||
| wxCoord | width, | |||
| wxCoord | height, | |||
| wxDC * | source, | |||
| wxCoord | xsrc, | |||
| wxCoord | ysrc, | |||
| int | rop = wxCOPY, |
|||
| bool | useMask = false, |
|||
| wxCoord | xsrcMask = wxDefaultCoord, |
|||
| wxCoord | ysrcMask = wxDefaultCoord | |||
| ) |
Copies from a source DC to this DC, specifying the destination coordinates, size of area to copy, source DC, source coordinates, logical function, whether to use a bitmap mask, and mask source position.
Reimplemented from wxDC.
| void wxSVGFileDC::CalcBoundingBox | ( | wxCoord | x, | |
| wxCoord | y | |||
| ) |
Adds the specified point to the bounding box which can be retrieved with wxDC::MinX(), wxDC::MaxX() and wxDC::MinY(), wxDC::MaxY() functions.
Reimplemented from wxDC.
| void wxSVGFileDC::Clear | ( | ) |
This makes no sense in wxSVGFileDC and does nothing.
Reimplemented from wxDC.
| void wxSVGFileDC::CrossHair | ( | wxCoord | x, | |
| wxCoord | y | |||
| ) |
Not Implemented.
Reimplemented from wxDC.
| void wxSVGFileDC::DestroyClippingRegion | ( | ) |
Not Implemented.
Reimplemented from wxDC.
| wxCoord wxSVGFileDC::DeviceToLogicalX | ( | wxCoord | x | ) | const |
Convert device X coordinate to logical coordinate, using the current mapping mode.
Reimplemented from wxDC.
| wxCoord wxSVGFileDC::DeviceToLogicalXRel | ( | wxCoord | x | ) | const |
Convert device X coordinate to relative logical coordinate, using the current mapping mode but ignoring the x axis orientation. Use this function for converting a width, for example.
Reimplemented from wxDC.
| wxCoord wxSVGFileDC::DeviceToLogicalY | ( | wxCoord | y | ) | const |
Converts device Y coordinate to logical coordinate, using the current mapping mode.
Reimplemented from wxDC.
| wxCoord wxSVGFileDC::DeviceToLogicalYRel | ( | wxCoord | y | ) | const |
Convert device Y coordinate to relative logical coordinate, using the current mapping mode but ignoring the y axis orientation. Use this function for converting a height, for example.
Reimplemented from wxDC.
| void wxSVGFileDC::DrawArc | ( | wxCoord | x1, | |
| wxCoord | y1, | |||
| wxCoord | x2, | |||
| wxCoord | y2, | |||
| wxCoord | xc, | |||
| wxCoord | yc | |||
| ) |
Draws an arc of a circle, centred on (xc, yc), with starting point (x1, y1) and ending at (x2, y2). The current pen is used for the outline and the current brush for filling the shape.
The arc is drawn in a counter-clockwise direction from the start point to the end point.
Reimplemented from wxDC.
| void wxSVGFileDC::DrawBitmap | ( | const wxBitmap & | bitmap, | |
| wxCoord | x, | |||
| wxCoord | y, | |||
| bool | useMask = false | |||
| ) |
Draw a bitmap on the device context at the specified point. If useMask is true and the bitmap has a transparency mask, the bitmap will be drawn transparently.
When drawing a mono-bitmap, the current text foreground colour will be used to draw the foreground of the bitmap (all bits set to 1), and the current text background colour to draw the background (all bits set to 0).
Reimplemented from wxDC.
| void wxSVGFileDC::DrawCheckMark | ( | wxCoord | x, | |
| wxCoord | y, | |||
| wxCoord | width, | |||
| wxCoord | height | |||
| ) |
Draws a check mark inside the given rectangle.
Reimplemented from wxDC.
| void wxSVGFileDC::DrawCheckMark | ( | const wxRect & | rect | ) |
Draws a check mark inside the given rectangle.
Reimplemented from wxDC.
| void wxSVGFileDC::DrawCircle | ( | wxCoord | x, | |
| wxCoord | y, | |||
| wxCoord | radius | |||
| ) |
Draws a circle with the given centre and radius.
Reimplemented from wxDC.
| void wxSVGFileDC::DrawCircle | ( | const wxPoint & | pt, | |
| wxCoord | radius | |||
| ) |
Draws a circle with the given centre and radius.
Reimplemented from wxDC.
| void wxSVGFileDC::DrawEllipse | ( | wxCoord | x, | |
| wxCoord | y, | |||
| wxCoord | width, | |||
| wxCoord | height | |||
| ) |
Draws an ellipse contained in the rectangle specified either with the given top left corner and the given size or directly. The current pen is used for the outline and the current brush for filling the shape.
Reimplemented from wxDC.
Draws an ellipse contained in the rectangle specified either with the given top left corner and the given size or directly. The current pen is used for the outline and the current brush for filling the shape.
Reimplemented from wxDC.
| void wxSVGFileDC::DrawEllipse | ( | const wxRect & | rect | ) |
Draws an ellipse contained in the rectangle specified either with the given top left corner and the given size or directly. The current pen is used for the outline and the current brush for filling the shape.
Reimplemented from wxDC.
| void wxSVGFileDC::DrawEllipticArc | ( | wxCoord | x, | |
| wxCoord | y, | |||
| wxCoord | width, | |||
| wxCoord | height, | |||
| double | start, | |||
| double | end | |||
| ) |
Draws an arc of an ellipse. The current pen is used for drawing the arc and the current brush is used for drawing the pie.
x and y specify the x and y coordinates of the upper-left corner of the rectangle that contains the ellipse.
width and height specify the width and height of the rectangle that contains the ellipse.
start and end specify the start and end of the arc relative to the three-o'clock position from the center of the rectangle. Angles are specified in degrees (360 is a complete circle). Positive values mean counter-clockwise motion. If start is equal to end, a complete ellipse will be drawn.
Reimplemented from wxDC.
| void wxSVGFileDC::DrawIcon | ( | const wxIcon & | icon, | |
| wxCoord | x, | |||
| wxCoord | y | |||
| ) |
Draw an icon on the display (does nothing if the device context is PostScript). This can be the simplest way of drawing bitmaps on a window.
Reimplemented from wxDC.
| void wxSVGFileDC::DrawLine | ( | wxCoord | x1, | |
| wxCoord | y1, | |||
| wxCoord | x2, | |||
| wxCoord | y2 | |||
| ) |
Draws a line from the first point to the second. The current pen is used for drawing the line.
Reimplemented from wxDC.
| void wxSVGFileDC::DrawLines | ( | int | n, | |
| wxPoint | points[], | |||
| wxCoord | xoffset = 0, |
|||
| wxCoord | yoffset = 0 | |||
| ) |
Draws lines using an array of points of size n, or list of pointers to points, adding the optional offset coordinate. The current pen is used for drawing the lines. The programmer is responsible for deleting the list of points.
Reimplemented from wxDC.
| void wxSVGFileDC::DrawLines | ( | wxList * | points, | |
| wxCoord | xoffset = 0, |
|||
| wxCoord | yoffset = 0 | |||
| ) |
Draws lines using an array of points of size n, or list of pointers to points, adding the optional offset coordinate. The current pen is used for drawing the lines. The programmer is responsible for deleting the list of points.
| void wxSVGFileDC::DrawPoint | ( | wxCoord | x, | |
| wxCoord | y | |||
| ) |
Draws a point using the current pen.
Reimplemented from wxDC.
| void wxSVGFileDC::DrawPolygon | ( | int | n, | |
| wxPoint | points[], | |||
| wxCoord | xoffset = 0, |
|||
| wxCoord | yoffset = 0, |
|||
| int | fill_style = wxODDEVEN_RULE | |||
| ) |
Draws a filled polygon using an array of points of size n, or list of pointers to points, adding the optional offset coordinate. wxWidgets automatically closes the first and last points.
The last argument specifies the fill rule: wxODDEVEN_RULE (the default) or wxWINDING_RULE.
The current pen is used for drawing the outline, and the current brush for filling the shape. Using a transparent brush suppresses filling.
The programmer is responsible for deleting the list of points.
Reimplemented from wxDC.
| void wxSVGFileDC::DrawPolygon | ( | wxList * | points, | |
| wxCoord | xoffset = 0, |
|||
| wxCoord | yoffset = 0, |
|||
| int | fill_style = wxODDEVEN_RULE | |||
| ) |
Draws a filled polygon using an array of points of size n, or list of pointers to points, adding the optional offset coordinate. wxWidgets automatically closes the first and last points.
The last argument specifies the fill rule: wxODDEVEN_RULE (the default) or wxWINDING_RULE.
The current pen is used for drawing the outline, and the current brush for filling the shape. Using a transparent brush suppresses filling.
The programmer is responsible for deleting the list of points.
| void wxSVGFileDC::DrawRectangle | ( | wxCoord | x, | |
| wxCoord | y, | |||
| wxCoord | width, | |||
| wxCoord | height | |||
| ) |
Draws a rectangle with the given top left corner, and with the given size. The current pen is used for the outline and the current brush for filling the shape.
Reimplemented from wxDC.
| void wxSVGFileDC::DrawRotatedText | ( | const wxString & | text, | |
| wxCoord | x, | |||
| wxCoord | y, | |||
| double | angle | |||
| ) |
Draws the text rotated by angle degrees.
The wxMSW wxDC and wxSVGFileDC rotate the text around slightly different points, depending on the size of the font.
Reimplemented from wxDC.
| void wxSVGFileDC::DrawRoundedRectangle | ( | wxCoord | x, | |
| wxCoord | y, | |||
| wxCoord | width, | |||
| wxCoord | height, | |||
| double | radius = 20 | |||
| ) |
Draws a rectangle with the given top left corner, and with the given size. The corners are quarter-circles using the given radius. The current pen is used for the outline and the current brush for filling the shape.
If radius is positive, the value is assumed to be the radius of the rounded corner. If radius is negative, the absolute value is assumed to be the proportion of the smallest dimension of the rectangle. This means that the corner can be a sensible size relative to the size of the rectangle, and also avoids the strange effects X produces when the corners are too big for the rectangle.
Reimplemented from wxDC.
| void wxSVGFileDC::DrawSpline | ( | const wxPointList * | points | ) |
Draws a spline between all given control points, using the current pen. The programmer is responsible for deleting the list of points. The spline is drawn using a series of lines, using an algorithm taken from the X drawing program "XFIG".
Reimplemented from wxDC.
| void wxSVGFileDC::DrawSpline | ( | wxCoord | x1, | |
| wxCoord | y1, | |||
| wxCoord | x2, | |||
| wxCoord | y2, | |||
| wxCoord | x3, | |||
| wxCoord | y3 | |||
| ) |
Draws a three-point spline using the current pen.
Reimplemented from wxDC.
| void wxSVGFileDC::DrawText | ( | const wxString & | text, | |
| wxCoord | x, | |||
| wxCoord | y | |||
| ) |
Draws a text string at the specified point, using the current text font, and the current text foreground and background colours.
The coordinates refer to the top-left corner of the rectangle bounding the string. See wxDC::GetTextExtent() for how to get the dimensions of a text string, which can be used to position the text more precisely.
Reimplemented from wxDC.
| void wxSVGFileDC::EndDoc | ( | ) |
Does nothing.
Reimplemented from wxDC.
| void wxSVGFileDC::EndDrawing | ( | ) |
Does nothing.
| void wxSVGFileDC::EndPage | ( | ) |
Does nothing.
Reimplemented from wxDC.
| bool wxSVGFileDC::FloodFill | ( | wxCoord | x, | |
| wxCoord | y, | |||
| const wxColour & | colour, | |||
| int | style = wxFLOOD_SURFACE | |||
| ) |
Not implemented.
Reimplemented from wxDC.
| wxBrush wxSVGFileDC::GetBackground | ( | ) | const |
| const wxBrush wxSVGFileDC::GetBackground | ( | ) | const |
| int wxSVGFileDC::GetBackgroundMode | ( | ) | const |
Returns the current background mode: wxSOLID or wxTRANSPARENT.
Reimplemented from wxDC.
| wxBrush wxSVGFileDC::GetBrush | ( | ) | const |
| const wxBrush wxSVGFileDC::GetBrush | ( | ) | const |
| wxCoord wxSVGFileDC::GetCharHeight | ( | ) | const |
Gets the character height of the currently set font.
Reimplemented from wxDC.
| wxCoord wxSVGFileDC::GetCharWidth | ( | ) | const |
Gets the average character width of the currently set font.
Reimplemented from wxDC.
| void wxSVGFileDC::GetClippingBox | ( | wxCoord * | x, | |
| wxCoord * | y, | |||
| wxCoord * | width, | |||
| wxCoord * | height | |||
| ) | const |
Not implemented.
Reimplemented from wxDC.
| wxFont wxSVGFileDC::GetFont | ( | ) | const |
| const wxFont wxSVGFileDC::GetFont | ( | ) | const |
| int wxSVGFileDC::GetLogicalFunction | ( | ) | const |
| int wxSVGFileDC::GetMapMode | ( | ) | const |
| wxPen wxSVGFileDC::GetPen | ( | ) | const |
| const wxPen wxSVGFileDC::GetPen | ( | ) | const |
| bool wxSVGFileDC::GetPixel | ( | wxCoord | x, | |
| wxCoord | y, | |||
| wxColour * | colour | |||
| ) | const |
Not implemented.
Reimplemented from wxDC.
| void wxSVGFileDC::GetSize | ( | wxCoord * | width, | |
| wxCoord * | height | |||
| ) |
For a Windows printer device context, this gets the horizontal and vertical resolution.
| wxColour wxSVGFileDC::GetTextBackground | ( | ) | const |
| const wxColour& wxSVGFileDC::GetTextBackground | ( | ) | const |
| void wxSVGFileDC::GetTextExtent | ( | const wxString & | string, | |
| wxCoord * | w, | |||
| wxCoord * | h, | |||
| wxCoord * | descent = NULL, |
|||
| wxCoord * | externalLeading = NULL, |
|||
| const wxFont * | font = NULL | |||
| ) | const |
Gets the dimensions of the string using the currently selected font.
| string | The text string to measure. | |
| w | This value will be set to the width after this call. | |
| h | This value will be set to the height after this call. | |
| descent | The dimension from the baseline of the font to the bottom of the descender. | |
| externalLeading | Any extra vertical space added to the font by the font designer (usually is zero). | |
| font | Specifies an alternative to the currently selected font: but note that this does not yet work under Windows, so you need to set a font for the device context first. |
Reimplemented from wxDC.
| wxColour wxSVGFileDC::GetTextForeground | ( | ) | const |
| const wxColour wxSVGFileDC::GetTextForeground | ( | ) | const |
| void wxSVGFileDC::GetUserScale | ( | double * | x, | |
| double * | y | |||
| ) | const |
| wxCoord wxSVGFileDC::LogicalToDeviceX | ( | wxCoord | x | ) | const |
Converts logical X coordinate to device coordinate, using the current mapping mode.
Reimplemented from wxDC.
| wxCoord wxSVGFileDC::LogicalToDeviceXRel | ( | wxCoord | x | ) | const |
Converts logical X coordinate to relative device coordinate, using the current mapping mode but ignoring the x axis orientation. Use this for converting a width, for example.
Reimplemented from wxDC.
| wxCoord wxSVGFileDC::LogicalToDeviceY | ( | wxCoord | y | ) | const |
Converts logical Y coordinate to device coordinate, using the current mapping mode.
Reimplemented from wxDC.
| wxCoord wxSVGFileDC::LogicalToDeviceYRel | ( | wxCoord | y | ) | const |
Converts logical Y coordinate to relative device coordinate, using the current mapping mode but ignoring the y axis orientation. Use this for converting a height, for example.
Reimplemented from wxDC.
| wxCoord wxSVGFileDC::MaxX | ( | ) | const |
Gets the maximum horizontal extent used in drawing commands so far.
Reimplemented from wxDC.
| wxCoord wxSVGFileDC::MaxY | ( | ) | const |
Gets the maximum vertical extent used in drawing commands so far.
Reimplemented from wxDC.
| wxCoord wxSVGFileDC::MinX | ( | ) | const |
Gets the minimum horizontal extent used in drawing commands so far.
Reimplemented from wxDC.
| wxCoord wxSVGFileDC::MinY | ( | ) | const |
Gets the minimum vertical extent used in drawing commands so far.
Reimplemented from wxDC.
| bool wxSVGFileDC::Ok | ( | ) |
Returns true if the DC is ok to use. false values arise from being unable to write the file.
| void wxSVGFileDC::ResetBoundingBox | ( | ) |
Resets the bounding box. After a call to this function, the bounding box doesn't contain anything.
Reimplemented from wxDC.
| void wxSVGFileDC::SetAxisOrientation | ( | bool | xLeftRight, | |
| bool | yBottomUp | |||
| ) |
Sets the x and y axis orientation (i.e., the direction from lowest to highest values on the axis). The default orientation is the natural orientation, e.g. x axis from left to right and y axis from bottom up.
| xLeftRight | true to set the x axis orientation to the natural left to right orientation, false to invert it. | |
| yBottomUp | true to set the y axis orientation to the natural bottom up orientation, false to invert it. |
Reimplemented from wxDC.
| void wxSVGFileDC::SetBackground | ( | const wxBrush & | brush | ) |
Sets the current background brush for the DC.
Reimplemented from wxDC.
| void wxSVGFileDC::SetBackgroundMode | ( | int | mode | ) |
mode may be one of wxSOLID and wxTRANSPARENT. This setting determines whether text will be drawn with a background colour or not.
Reimplemented from wxDC.
| void wxSVGFileDC::SetBrush | ( | const wxBrush & | brush | ) |
Sets the current brush for the DC. If the argument is wxNullBrush, the current brush is selected out of the device context, and the original brush restored, allowing the current brush to be destroyed safely.
Reimplemented from wxDC.
| void wxSVGFileDC::SetClippingRegion | ( | wxCoord | x, | |
| wxCoord | y, | |||
| wxCoord | width, | |||
| wxCoord | height | |||
| ) |
Not implemented.
Reimplemented from wxDC.
Not implemented.
Reimplemented from wxDC.
| void wxSVGFileDC::SetClippingRegion | ( | const wxRect & | rect | ) |
Not implemented.
Reimplemented from wxDC.
| void wxSVGFileDC::SetClippingRegion | ( | const wxRegion & | region | ) |
Not implemented.
| void wxSVGFileDC::SetDeviceOrigin | ( | wxCoord | x, | |
| wxCoord | y | |||
| ) |
Sets the device origin (i.e., the origin in pixels after scaling has been applied). This function may be useful in Windows printing operations for placing a graphic on a page.
Reimplemented from wxDC.
| void wxSVGFileDC::SetFont | ( | const wxFont & | font | ) |
| void wxSVGFileDC::SetLogicalFunction | ( | int | function | ) |
Does the same as wxDC::SetLogicalFunction(), except that only wxCOPY is avalaible. Trying to set one of the othe values will fail.
Reimplemented from wxDC.
| void wxSVGFileDC::SetMapMode | ( | int | mode | ) |
The mapping mode of the device context defines the unit of measurement used to convert logical units to device units. Note that in X, text drawing isn't handled consistently with the mapping mode; a font is always specified in point size. However, setting the user scale scales the text appropriately. In Windows, scalable TrueType fonts are always used; in X, results depend on availability of fonts, but usually a reasonable match is found.
Note that the coordinate origin should ideally be selectable, but for now is always at the top left of the screen/printer.
Drawing to a Windows printer device context under UNIX uses the current mapping mode, but mapping mode is currently ignored for PostScript output.
The mapping mode can be one of the following:
Reimplemented from wxDC.
| void wxSVGFileDC::SetPalette | ( | const wxPalette & | palette | ) |
Not