您好,欢迎来到小侦探旅游网。
搜索
您的当前位置:首页svg说明

svg说明

来源:小侦探旅游网
#$+K!

Manual for wxSVGFileDC

by Chris Elliott

Contents

Copyright notice wxSVGFileDC ontents

ontents b

rowse00001 K

Contents D

isableButton(\"Up\")

C

C

$#+K!

Copyright notice

opyright notice opic0 b

rowse00002 K

Copyright notice D

isableButton(\"Up\")

t

C

$#+K!

wxSVGFileDC

wxSVGFileDC

xSVGFileDC opic1 b

rowse00003 K

wxSVGFileDC D

isableButton(\"Up\")

t

w

$#+K!

wxSVGFileDC

A wxSVGFileDC is a device context onto which graphics and text can be drawn, and the output produced as a vector file, in the SVG format (see

http://www.w3.org/TR/2001/REC-SVG-20010904/ ). This format can be read by a range of programs, including a Netscape plugin (Adobe), full details at

http://www.w3.org/Graphics/SVG/SVG-Implementations.htm8 Vector formats may often be smaller than raster formats.

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 into the wxSVGFileDC are supported.

A more substantial SVG library (for reading and writing) is available at http://wxart2d.sourceforge.net/ Derived from wxDCBase Include files See also Members

wxSVGFileDC::wxSVGFileDC wxSVGFileDC::~wxSVGFileDC wxSVGFileDC::BeginDrawing wxSVGFileDC::Blit wxSVGFileDC::CalcBoundingBox wxSVGFileDC::Clear wxSVGFileDC::CrossHair wxSVGFileDC::DestroyClippingRegion wxSVGFileDC::DeviceToLogicalX wxSVGFileDC::DeviceToLogicalXRel wxSVGFileDC::DeviceToLogicalY wxSVGFileDC::DeviceToLogicalYRel xSVGFileDC

xSVGFileDC b

rowse00004 K

wxSVGFileDC E

nableButton(\"Up\");ChangeButtonBinding(\"Up\

w

w

wxSVGFileDC::DrawArc wxSVGFileDC::DrawBitmap wxSVGFileDC::DrawCheckMark wxSVGFileDC::DrawCircle wxSVGFileDC::DrawEllipse wxSVGFileDC::DrawEllipticArc wxSVGFileDC::DrawIcon wxSVGFileDC::DrawLine wxSVGFileDC::DrawLines wxSVGFileDC::DrawPolygon wxSVGFileDC::DrawPoint wxSVGFileDC::DrawRectangle wxSVGFileDC::DrawRotatedText wxSVGFileDC::DrawRoundedRectangle wxSVGFileDC::DrawSpline wxSVGFileDC::DrawText wxSVGFileDC::EndDoc wxSVGFileDC::EndDrawing wxSVGFileDC::EndPage wxSVGFileDC::FloodFill wxSVGFileDC::GetBackground wxSVGFileDC::GetBackgroundMode wxSVGFileDC::GetBrush wxSVGFileDC::GetCharHeight wxSVGFileDC::GetCharWidth wxSVGFileDC::GetClippingBox wxSVGFileDC::GetFont wxSVGFileDC::GetLogicalFunction wxSVGFileDC::GetMapMode wxSVGFileDC::GetPen wxSVGFileDC::GetPixel wxSVGFileDC::GetSize wxSVGFileDC::GetTextBackground wxSVGFileDC::GetTextExtent wxSVGFileDC::GetTextForeground wxSVGFileDC::GetUserScale wxSVGFileDC::LogicalToDeviceX wxSVGFileDC::LogicalToDeviceXRel wxSVGFileDC::LogicalToDeviceY wxSVGFileDC::LogicalToDeviceYRel wxSVGFileDC::MaxX wxSVGFileDC::MaxY wxSVGFileDC::MinX wxSVGFileDC::MinY wxSVGFileDC::Ok wxSVGFileDC::ResetBoundingBox wxSVGFileDC::SetAxisOrientation wxSVGFileDC::SetDeviceOrigin wxSVGFileDC::SetBackground wxSVGFileDC::SetBackgroundMode wxSVGFileDC::SetClippingRegion wxSVGFileDC::SetPalette wxSVGFileDC::SetBrush wxSVGFileDC::SetFont wxSVGFileDC::SetLogicalFunction wxSVGFileDC::SetMapMode wxSVGFileDC::SetPen wxSVGFileDC::SetTextBackground wxSVGFileDC::SetTextForeground wxSVGFileDC::SetUserScale wxSVGFileDC::StartDoc wxSVGFileDC::StartPage $#+K!

wxSVGFileDC::wxSVGFileDC

wxSVGFileDC(wxString f)K wxSVGFileDC(wxString f, int Width,int Height)K wxSVGFileDC(wxString f, int Width,int Height,float dpi)K

Constructors: a filename f with default size 340x240 at 72.0 dots per inch (a frequent screen resolution). a filename f with size Width by Height at 72.0 dots per inch a filename f with size Width by Height at dpi resolution.

xSVGFileDC::wxSVGFileDC opic2 b

rowse00005 K

wxSVGFileDC wxSVGFileDC E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

wxSVGFileDC K

wxSVGFileDC K

wxSVGFileDC

t

w

$#+K!

wxSVGFileDC::~wxSVGFileDC

~wxSVGFileDC()K Destructor.

xSVGFileDC::~wxSVGFileDC

opic3 b

rowse00006 K

wxSVGFileDC ~wxSVGFileDC E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

~wxSVGFileDC

t

w

$#+K!

wxSVGFileDC::BeginDrawing

Does nothing

xSVGFileDC::BeginDrawing xdcbegindrawing b

rowse00007 K

wxSVGFileDC BeginDrawing E

nableButton(\"Up\");ChangeButtonBinding(\"Up\

w

w

$#+K!

wxSVGFileDC::Blit

bool Blit(wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height,

wxSVGFileDC* source, wxCoord xsrc, wxCoord ysrc, int logicalFunc = wxCOPY, bool useMask = FALSE, wxCoord xsrcMask = -1, wxCoord ysrcMask = -1)K

As wxDC: Copy 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.

xSVGFileDC::Blit xdcblit b

rowse00008 K

wxSVGFileDC Blit E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

Blit

w

w

$#+K!

wxSVGFileDC::CalcBoundingBox

void CalcBoundingBox(wxCoord x, wxCoord y)K

Adds the specified point to the bounding box which can be retrieved with MinX, MaxX and MinY, MaxY functions. xSVGFileDC::CalcBoundingBox

xdccalcboundingbox b

rowse00009 K

wxSVGFileDC CalcBoundingBox E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

CalcBoundingBox

w

w

$#+K!

wxSVGFileDC::Clear

void Clear()K

This makes no sense in wxSVGFileDC and does nothing

xSVGFileDC::Clear

xdcclear b

rowse00010 K

wxSVGFileDC Clear E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

Clear

w

w

$#+K!

wxSVGFileDC::CrossHair

void CrossHair(wxCoord x, wxCoord y)K Not Implemented

xSVGFileDC::CrossHair

xdccrosshair b

rowse00011 K

wxSVGFileDC CrossHair E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

CrossHair

w

w

$#+K!

wxSVGFileDC::DestroyClippingRegion

void DestroyClippingRegion()K Not Implemented

xSVGFileDC::DestroyClippingRegion

xdcdestroyclippingregion b

rowse00012 K

wxSVGFileDC DestroyClippingRegion E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

DestroyClippingRegion

w

w

$#+K!

wxSVGFileDC::DeviceToLogicalX

wxCoord DeviceToLogicalX(wxCoord x)K

Convert device X coordinate to logical coordinate, using the current mapping mode.

xSVGFileDC::DeviceToLogicalX

xdcdevicetologicalx b

rowse00013 K

wxSVGFileDC DeviceToLogicalX E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

DeviceToLogicalX

w

w

$#+K!

wxSVGFileDC::DeviceToLogicalXRel

wxCoord DeviceToLogicalXRel(wxCoord x)K

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.

xSVGFileDC::DeviceToLogicalXRel

xdcdevicetologicalxrel b

rowse00014 K

wxSVGFileDC DeviceToLogicalXRel E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

DeviceToLogicalXRel

w

w

$#+K!

wxSVGFileDC::DeviceToLogicalY

wxCoord DeviceToLogicalY(wxCoord y)K

Converts device Y coordinate to logical coordinate, using the current mapping mode.

xSVGFileDC::DeviceToLogicalY

xdcdevicetologicaly b

rowse00015 K

wxSVGFileDC DeviceToLogicalY E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

DeviceToLogicalY

w

w

$#+K!

wxSVGFileDC::DeviceToLogicalYRel

wxCoord DeviceToLogicalYRel(wxCoord y)K

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.

xSVGFileDC::DeviceToLogicalYRel

xdcdevicetologicalyrel b

rowse00016 K

wxSVGFileDC DeviceToLogicalYRel E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

DeviceToLogicalYRel

w

w

$#+K!

wxSVGFileDC::DrawArc

void DrawArc(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2, wxCoord xc, wxCoord yc)K

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 an anticlockwise direction from the start point to the end point.

xSVGFileDC::DrawArc

xdcdrawarc b

rowse00017 K

wxSVGFileDC DrawArc E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

DrawArc

w

w

$#+K!

wxSVGFileDC::DrawBitmap

void DrawBitmap(const wxBitmap& bitmap, wxCoord x, wxCoord y, bool transparent)K

Draw a bitmap on the device context at the specified point. If transparent 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). See also SetTextForeground, SetTextBackground and wxMemoryDC.

xSVGFileDC::DrawBitmap xdcdrawbitmap b

rowse00018 K

wxSVGFileDC DrawBitmap E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

DrawBitmap

w

w

$#+K!

wxSVGFileDC::DrawCheckMark

void DrawCheckMark(wxCoord x, wxCoord y, wxCoord width, wxCoord height)K void DrawCheckMark(const wxRect &rect)K Draws a check mark inside the given rectangle.

xSVGFileDC::DrawCheckMark xdcdrawcheckmark b

rowse00019 K

wxSVGFileDC DrawCheckMark E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

DrawCheckMark K

DrawCheckMark

w

w

$#+K!

wxSVGFileDC::DrawCircle

void DrawCircle(wxCoord x, wxCoord y, wxCoord radius)K void DrawCircle(const wxPoint& pt, wxCoord radius)K Draws a circle with the given centre and radius. See also DrawEllipse

xSVGFileDC::DrawCircle xdcdrawcircle b

rowse00020 K

wxSVGFileDC DrawCircle E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

DrawCircle K

DrawCircle

w

w

$#+K!

wxSVGFileDC::DrawEllipse

void DrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height)K void DrawEllipse(const wxPoint& pt, const wxSize& size)K void DrawEllipse(const wxRect& rect)K

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. See also DrawCircle xSVGFileDC::DrawEllipse

xdcdrawellipse b

rowse00021 K

wxSVGFileDC DrawEllipse E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

DrawEllipse K

DrawEllipse K

DrawEllipse

w

w

$#+K!

wxSVGFileDC::DrawEllipticArc

void DrawEllipticArc(wxCoord x, wxCoord y, wxCoord width, wxCoord height, double start, double end)K

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.

xSVGFileDC::DrawEllipticArc xdcdrawellipticarc b

rowse00022 K

wxSVGFileDC DrawEllipticArc E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

DrawEllipticArc

w

w

$#+K!

wxSVGFileDC::DrawIcon

void DrawIcon(const wxIcon& icon, wxCoord x, wxCoord y)K

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.

xSVGFileDC::DrawIcon xdcdrawicon b

rowse00023 K

wxSVGFileDC DrawIcon E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

DrawIcon

w

w

$#+K!

wxSVGFileDC::DrawLine

void DrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2)K

Draws a line from the first point to the second. The current pen is used for drawing the line.

xSVGFileDC::DrawLine

xdcdrawline b

rowse00024 K

wxSVGFileDC DrawLine E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

DrawLine

w

w

$#+K!

wxSVGFileDC::DrawLines

void DrawLines(int n, wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0)K void DrawLines(wxList *points, wxCoord xoffset = 0, wxCoord yoffset = 0)K

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.

xSVGFileDC::DrawLines

xdcdrawlines b

rowse00025 K

wxSVGFileDC DrawLines E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

DrawLines K

DrawLines

w

w

$#+K!

wxSVGFileDC::DrawPolygon

void DrawPolygon(int n, wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0, int fill_style = wxODDEVEN_RULE)K

void DrawPolygon(wxList *points, wxCoord xoffset = 0, wxCoord yoffset = 0, int fill_style = wxODDEVEN_RULE)K

Draws a filled polygon using an array of points of size n, or list of pointers to points, adding the optional offset coordinate.

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.

Note that wxWindows automatically closes the first and last points.

xSVGFileDC::DrawPolygon xdcdrawpolygon b

rowse00026 K

wxSVGFileDC DrawPolygon E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

DrawPolygon K

DrawPolygon

w

w

$#+K!

wxSVGFileDC::DrawPoint

void DrawPoint(wxCoord x, wxCoord y)K Draws a point using the current pen.

xSVGFileDC::DrawPoint

xdcdrawpoint b

rowse00027 K

wxSVGFileDC DrawPoint E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

DrawPoint

w

w

$#+K!

wxSVGFileDC::DrawRectangle

void DrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height)K 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.

xSVGFileDC::DrawRectangle xdcdrawrectangle b

rowse00028 K

wxSVGFileDC DrawRectangle E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

DrawRectangle

w

w

$#+K!

wxSVGFileDC::DrawRotatedText

void DrawRotatedText(const wxString& text, wxCoord x, wxCoord y, double angle)K 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

xSVGFileDC::DrawRotatedText xdcdrawrotatedtext b

rowse00029 K

wxSVGFileDC DrawRotatedText E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

DrawRotatedText

w

w

$#+K!

wxSVGFileDC::DrawRoundedRectangle

void DrawRoundedRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height, double radius = 20)K

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.

xSVGFileDC::DrawRoundedRectangle xdcdrawroundedrectangle b

rowse00030 K

wxSVGFileDC DrawRoundedRectangle E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

DrawRoundedRectangle

w

w

$#+K!

wxSVGFileDC::DrawSpline

void DrawSpline(wxList *points)K

Draws a spline between all given control points, using the current pen. Doesn't delete the wxList and contents. The spline is drawn using a series of lines, using an algorithm taken from the X drawing program 'XFIG'.

void DrawSpline(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2, wxCoord x3, wxCoord y3)K

Draws a three-point spline using the current pen.

xSVGFileDC::DrawSpline xdcdrawspline b

rowse00031 K

wxSVGFileDC DrawSpline E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

DrawSpline K

DrawSpline

w

w

$#+K!

wxSVGFileDC::DrawText

void DrawText(const wxString& text, wxCoord x, wxCoord y)K

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

wxSVGFileDC::GetTextExtent for how to get the dimensions of a text string, which can be used to position the text more precisely.

xSVGFileDC::DrawText xdcdrawtext b

rowse00032 K

wxSVGFileDC DrawText E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

DrawText

w

w

$#+K!

wxSVGFileDC::EndDoc

void EndDoc()K Does nothing

xSVGFileDC::EndDoc

xdcenddoc b

rowse00033 K

wxSVGFileDC EndDoc E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

EndDoc

w

w

$#+K!

wxSVGFileDC::EndDrawing

void EndDrawing()K Does nothing

xSVGFileDC::EndDrawing

xdcenddrawing b

rowse00034 K

wxSVGFileDC EndDrawing E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

EndDrawing

w

w

$#+K!

wxSVGFileDC::EndPage

void EndPage()K Does nothing

xSVGFileDC::EndPage

xdcendpage b

rowse00035 K

wxSVGFileDC EndPage E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

EndPage

w

w

$#+K!

wxSVGFileDC::FloodFill

void FloodFill(wxCoord x, wxCoord y, const wxColour& colour, int style=wxFLOOD_SURFACE)K Not implemented

xSVGFileDC::FloodFill xdcfloodfill b

rowse00036 K

wxSVGFileDC FloodFill E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

FloodFill

w

w

$#+KK!

wxSVGFileDC::GetBackground

wxBrush& GetBackground()K

const wxBrush& GetBackground() const

Gets the brush used for painting the background (see wxSVGFileDC::SetBackground). xSVGFileDC::GetBackground

xdcgetbackground b

rowse00037 K

wxSVGFileDC GetBackground K

GetBackground E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

GetBackground

w

w

$#+KK!

wxSVGFileDC::GetBackgroundMode

int GetBackgroundMode() const

Returns the current background mode: wxSOLID or wxTRANSPARENT. See also

SetBackgroundMode

xSVGFileDC::GetBackgroundMode xdcgetbackgroundmode b

rowse00038 K

wxSVGFileDC GetBackgroundMode K

GetBackgroundMode E

nableButton(\"Up\");ChangeButtonBinding(\"Up\

w

w

$#+KK!

wxSVGFileDC::GetBrush

wxBrush& GetBrush()K

const wxBrush& GetBrush() const

Gets the current brush (see wxSVGFileDC::SetBrush). xSVGFileDC::GetBrush

xdcgetbrush b

rowse00039 K

wxSVGFileDC GetBrush K

GetBrush E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

GetBrush

w

w

$#+K!

wxSVGFileDC::GetCharHeight

wxCoord GetCharHeight()K

Gets the character height of the currently set font.

xSVGFileDC::GetCharHeight

xdcgetcharheight b

rowse00040 K

wxSVGFileDC GetCharHeight E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

GetCharHeight

w

w

$#+K!

wxSVGFileDC::GetCharWidth

wxCoord GetCharWidth()K

Gets the average character width of the currently set font.

xSVGFileDC::GetCharWidth

xdcgetcharwidth b

rowse00041 K

wxSVGFileDC GetCharWidth E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

GetCharWidth

w

w

$#+K!

wxSVGFileDC::GetClippingBox

void GetClippingBox(wxCoord *x, wxCoord *y, wxCoord *width, wxCoord *height)K Not implemented

xSVGFileDC::GetClippingBox

xdcgetclippingbox b

rowse00042 K

wxSVGFileDC GetClippingBox E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

GetClippingBox

w

w

$#+KK!

wxSVGFileDC::GetFont

wxFont& GetFont()K

const wxFont& GetFont() const

Gets the current font (see wxSVGFileDC::SetFont). xSVGFileDC::GetFont

xdcgetfont b

rowse00043 K

wxSVGFileDC GetFont K

GetFont E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

GetFont

w

w

$#+K!

wxSVGFileDC::GetLogicalFunction

int GetLogicalFunction()K

Gets the current logical function (see wxSVGFileDC::SetLogicalFunction). xSVGFileDC::GetLogicalFunction

xdcgetlogicalfunction b

rowse00044 K

wxSVGFileDC GetLogicalFunction E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

GetLogicalFunction

w

w

$#+K!

wxSVGFileDC::GetMapMode

int GetMapMode()K

Gets the mapping mode for the device context (see wxSVGFileDC::SetMapMode).

xSVGFileDC::GetMapMode xdcgetmapmode b

rowse00045 K

wxSVGFileDC GetMapMode E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

GetMapMode

w

w

$#+KK!

wxSVGFileDC::GetPen

wxPen& GetPen()K

const wxPen& GetPen() const

Gets the current pen (see wxSVGFileDC::SetPen). xSVGFileDC::GetPen

xdcgetpen b

rowse00046 K

wxSVGFileDC GetPen K

GetPen E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

GetPen

w

w

$#+K!

wxSVGFileDC::GetPixel

bool GetPixel(wxCoord x, wxCoord y, wxColour *colour)K Not implemented

xSVGFileDC::GetPixel

xdcgetpixel b

rowse00047 K

wxSVGFileDC GetPixel E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

GetPixel

w

w

$#+K!

wxSVGFileDC::GetSize

void GetSize(wxCoord *width, wxCoord *height)K

For a Windows printer device context, this gets the horizontal and vertical resolution.

xSVGFileDC::GetSize

xdcgetsize b

rowse00048 K

wxSVGFileDC GetSize E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

GetSize

w

w

$#+KK!

wxSVGFileDC::GetTextBackground

wxColour& GetTextBackground()K

const wxColour& GetTextBackground() const

Gets the current text background colour (see wxSVGFileDC::SetTextBackground). xSVGFileDC::GetTextBackground

xdcgettextbackground b

rowse00049 K

wxSVGFileDC GetTextBackground K

GetTextBackground E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

GetTextBackground

w

w

$#+K!

wxSVGFileDC::GetTextExtent

void GetTextExtent(const wxString& string, wxCoord *w, wxCoord *h,

wxCoord *descent = NULL, wxCoord *externalLeading = NULL, wxFont *font = NULL)K

Gets the dimensions of the string using the currently selected font. string is the text string to measure, w and h are the total width and height respectively, descent is the dimension from the baseline of the font to the bottom of the descender, and externalLeading is any extra vertical space added to the font by the font designer (usually is zero).

The optional parameter 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.

See also wxFont, wxSVGFileDC::SetFont.

xSVGFileDC::GetTextExtent xdcgettextextent b

rowse00050 K

wxSVGFileDC GetTextExtent E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

GetTextExtent

w

w

$#+KK!

wxSVGFileDC::GetTextForeground

wxColour& GetTextForeground()K

const wxColour& GetTextForeground() const

Gets the current text foreground colour (see wxSVGFileDC::SetTextForeground). xSVGFileDC::GetTextForeground

xdcgettextforeground b

rowse00051 K

wxSVGFileDC GetTextForeground K

GetTextForeground E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

GetTextForeground

w

w

$#+K!

wxSVGFileDC::GetUserScale

void GetUserScale(double *x, double *y)K

Gets the current user scale factor (set by SetUserScale). xSVGFileDC::GetUserScale

xdcgetuserscale b

rowse00052 K

wxSVGFileDC GetUserScale E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

GetUserScale

w

w

$#+K!

wxSVGFileDC::LogicalToDeviceX

wxCoord LogicalToDeviceX(wxCoord x)K

Converts logical X coordinate to device coordinate, using the current mapping mode.

xSVGFileDC::LogicalToDeviceX

xdclogicaltodevicex b

rowse00053 K

wxSVGFileDC LogicalToDeviceX E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

LogicalToDeviceX

w

w

$#+K!

wxSVGFileDC::LogicalToDeviceXRel

wxCoord LogicalToDeviceXRel(wxCoord x)K

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.

xSVGFileDC::LogicalToDeviceXRel xdclogicaltodevicexrel b

rowse000 K

wxSVGFileDC LogicalToDeviceXRel E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

LogicalToDeviceXRel

w

w

$#+K!

wxSVGFileDC::LogicalToDeviceY

wxCoord LogicalToDeviceY(wxCoord y)K

Converts logical Y coordinate to device coordinate, using the current mapping mode.

xSVGFileDC::LogicalToDeviceY

xdclogicaltodevicey b

rowse00055 K

wxSVGFileDC LogicalToDeviceY E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

LogicalToDeviceY

w

w

$#+K!

wxSVGFileDC::LogicalToDeviceYRel

wxCoord LogicalToDeviceYRel(wxCoord y)K

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.

xSVGFileDC::LogicalToDeviceYRel xdclogicaltodeviceyrel b

rowse00056 K

wxSVGFileDC LogicalToDeviceYRel E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

LogicalToDeviceYRel

w

w

$#+K!

wxSVGFileDC::MaxX

wxCoord MaxX()K

Gets the maximum horizontal extent used in drawing commands so far.

xSVGFileDC::MaxX

xdcmaxx b

rowse00057 K

wxSVGFileDC MaxX E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

MaxX

w

w

$#+K!

wxSVGFileDC::MaxY

wxCoord MaxY()K

Gets the maximum vertical extent used in drawing commands so far.

xSVGFileDC::MaxY

xdcmaxy b

rowse00058 K

wxSVGFileDC MaxY E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

MaxY

w

w

$#+K!

wxSVGFileDC::MinX

wxCoord MinX()K

Gets the minimum horizontal extent used in drawing commands so far.

xSVGFileDC::MinX

xdcminx b

rowse00059 K

wxSVGFileDC MinX E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

MinX

w

w

$#+K!

wxSVGFileDC::MinY

wxCoord MinY()K

Gets the minimum vertical extent used in drawing commands so far.

xSVGFileDC::MinY

xdcminy b

rowse00060 K

wxSVGFileDC MinY E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

MinY

w

w

$#+K!

wxSVGFileDC::Ok

bool Ok()K

Returns true if the DC is ok to use; False values arise from being unable to write the file

xSVGFileDC::Ok

xdcok b

rowse00061 K

wxSVGFileDC Ok E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

Ok

w

w

$#+K!

wxSVGFileDC::ResetBoundingBox

void ResetBoundingBox()K

Resets the bounding box: after a call to this function, the bounding box doesn't contain anything. See also CalcBoundingBox xSVGFileDC::ResetBoundingBox

xdcresetboundingbox b

rowse00062 K

wxSVGFileDC ResetBoundingBox E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

ResetBoundingBox

w

w

$#+K!

wxSVGFileDC::SetAxisOrientation

void SetAxisOrientation(bool xLeftRight, bool yBottomUp)K 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. Parameters 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.

xSVGFileDC::SetAxisOrientation xdcsetaxisorientation b

rowse00063 K

wxSVGFileDC SetAxisOrientation E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

SetAxisOrientation

w

w

$#+K!

wxSVGFileDC::SetDeviceOrigin

void SetDeviceOrigin(wxCoord x, wxCoord y)K

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.

xSVGFileDC::SetDeviceOrigin

xdcsetdeviceorigin b

rowse000 K

wxSVGFileDC SetDeviceOrigin E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

SetDeviceOrigin

w

w

$#+K!

wxSVGFileDC::SetBackground

void SetBackground(const wxBrush& brush)K Sets the current background brush for the DC.

xSVGFileDC::SetBackground

xdcsetbackground b

rowse00065 K

wxSVGFileDC SetBackground E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

SetBackground

w

w

$#+K!

wxSVGFileDC::SetBackgroundMode

void SetBackgroundMode(int mode)K

mode may be one of wxSOLID and wxTRANSPARENT. This setting determines whether text will be drawn with a background colour or not.

xSVGFileDC::SetBackgroundMode xdcsetbackgroundmode b

rowse00066 K

wxSVGFileDC SetBackgroundMode E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

SetBackgroundMode

w

w

$#+K!

wxSVGFileDC::SetClippingRegion

void SetClippingRegion(wxCoord x, wxCoord y, wxCoord width, wxCoord height)K void SetClippingRegion(const wxPoint& pt, const wxSize& sz)K void SetClippingRegion(const wxRect& rect)K void SetClippingRegion(const wxRegion& region)K Not implemented

xSVGFileDC::SetClippingRegion w

xdcsetclippingregion b

rowse00067 K

wxSVGFileDC SetClippingRegion E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

SetClippingRegion K

SetClippingRegion K

SetClippingRegion K

SetClippingRegion

w

$#+K!

wxSVGFileDC::SetPalette

void SetPalette(const wxPalette& palette)K Not implemented

xSVGFileDC::SetPalette

xdcsetpalette b

rowse00068 K

wxSVGFileDC SetPalette E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

SetPalette

w

w

$#+K!

wxSVGFileDC::SetBrush

void SetBrush(const wxBrush& brush)K 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. See also wxBrush. See also wxMemoryDC for the interpretation of colours when drawing into a monochrome bitmap.

xSVGFileDC::SetBrush

xdcsetbrush b

rowse00069 K

wxSVGFileDC SetBrush E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

SetBrush

w

w

$#+K!

wxSVGFileDC::SetFont

void SetFont(const wxFont& font)K

Sets the current font for the DC. It must be a valid font, in particular you should not pass wxNullFont to this method. See also wxFont.

xSVGFileDC::SetFont xdcsetfont b

rowse00070 K

wxSVGFileDC SetFont E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

SetFont

w

w

$#+K!

wxSVGFileDC::SetLogicalFunction

void SetLogicalFunction(int function)K

Only wxCOPY is avalaible; trying to set one of the othe values will fail

xSVGFileDC::SetLogicalFunction

xdcsetlogicalfunction b

rowse00071 K

wxSVGFileDC SetLogicalFunction E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

SetLogicalFunction

w

w

$#+K!

wxSVGFileDC::SetMapMode

void SetMapMode(int int)K

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 (see wxSVGFileDC::SetUserScale) scales the text appropriately. In Windows, scaleable 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:

wxMM_TWIPS Each logical unit is 1/20 of a point, or 1/1440 of an inch. wxMM_POINTS wxMM_METRIC

Each logical unit is a point, or 1/72 of an inch. Each logical unit is 1 mm.

wxMM_LOMETRIC Each logical unit is 1/10 of a mm. wxMM_TEXT Each logical unit is 1 pixel.

xSVGFileDC::SetMapMode xdcsetmapmode b

rowse00072 K

wxSVGFileDC SetMapMode E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

SetMapMode

w

w

$#+K!

wxSVGFileDC::SetPen

void SetPen(const wxPen& pen)K Sets the current pen for the DC.

If the argument is wxNullPen, the current pen is selected out of the device context, and the original pen restored.

See also wxMemoryDC for the interpretation of colours when drawing into a monochrome bitmap.

xSVGFileDC::SetPen xdcsetpen b

rowse00073 K

wxSVGFileDC SetPen E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

SetPen

w

w

$#+K!

wxSVGFileDC::SetTextBackground

void SetTextBackground(const wxColour& colour)K Sets the current text background colour for the DC.

xSVGFileDC::SetTextBackground

xdcsettextbackground b

rowse00074 K

wxSVGFileDC SetTextBackground E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

SetTextBackground

w

w

$#+K!

wxSVGFileDC::SetTextForeground

void SetTextForeground(const wxColour& colour)K Sets the current text foreground colour for the DC.

See also wxMemoryDC for the interpretation of colours when drawing into a monochrome bitmap.

xSVGFileDC::SetTextForeground

xdcsettextforeground b

rowse00075 K

wxSVGFileDC SetTextForeground E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

SetTextForeground

w

w

$#+K!

wxSVGFileDC::SetUserScale

void SetUserScale(double xScale, double yScale)K

Sets the user scaling factor, useful for applications which require 'zooming'.

xSVGFileDC::SetUserScale

xdcsetuserscale b

rowse00076 K

wxSVGFileDC SetUserScale E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

SetUserScale

w

w

$#+K!

wxSVGFileDC::StartDoc

bool StartDoc(const wxString& message)K Does nothing

xSVGFileDC::StartDoc

xdcstartdoc b

rowse00077 K

wxSVGFileDC StartDoc E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

StartDoc

w

w

$#+K!

wxSVGFileDC::StartPage

bool StartPage()K Does nothing

xSVGFileDC::StartPage

xdcstartpage b

rowse00078 K

wxSVGFileDC StartPage E

nableButton(\"Up\");ChangeButtonBinding(\"Up\K

StartPage

w

w

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- xiaozhentang.com 版权所有 湘ICP备2023022495号-4

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务