⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dcsvg.tex

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 TEX
📖 第 1 页 / 共 2 页
字号:
Not implemented\membersection{wxSVGFileDC::GetBackground}\label{wxdcgetbackground}\func{wxBrush\&}{GetBackground}{\void}\constfunc{const wxBrush\&}{GetBackground}{\void}Gets the brush used for painting the background (see \helpref{wxSVGFileDC::SetBackground}{wxdcsetbackground}).\membersection{wxSVGFileDC::GetBackgroundMode}\label{wxdcgetbackgroundmode}\constfunc{int}{GetBackgroundMode}{\void}Returns the current background mode: {\tt wxSOLID} or {\tt wxTRANSPARENT}.\wxheading{See also}\helpref{SetBackgroundMode}{wxdcsetbackgroundmode}\membersection{wxSVGFileDC::GetBrush}\label{wxdcgetbrush}\func{wxBrush\&}{GetBrush}{\void}\constfunc{const wxBrush\&}{GetBrush}{\void}Gets the current brush (see \helpref{wxSVGFileDC::SetBrush}{wxdcsetbrush}).\membersection{wxSVGFileDC::GetCharHeight}\label{wxdcgetcharheight}\func{wxCoord}{GetCharHeight}{\void}Gets the character height of the currently set font.\membersection{wxSVGFileDC::GetCharWidth}\label{wxdcgetcharwidth}\func{wxCoord}{GetCharWidth}{\void}Gets the average character width of the currently set font.\membersection{wxSVGFileDC::GetClippingBox}\label{wxdcgetclippingbox}\func{void}{GetClippingBox}{\param{wxCoord}{ *x}, \param{wxCoord}{ *y}, \param{wxCoord}{ *width}, \param{wxCoord}{ *height}}Not implemented\membersection{wxSVGFileDC::GetFont}\label{wxdcgetfont}\func{wxFont\&}{GetFont}{\void}\constfunc{const wxFont\&}{GetFont}{\void}Gets the current font (see \helpref{wxSVGFileDC::SetFont}{wxdcsetfont}).\membersection{wxSVGFileDC::GetLogicalFunction}\label{wxdcgetlogicalfunction}\func{int}{GetLogicalFunction}{\void}Gets the current logical function (see \helpref{wxSVGFileDC::SetLogicalFunction}{wxdcsetlogicalfunction}).\membersection{wxSVGFileDC::GetMapMode}\label{wxdcgetmapmode}\func{int}{GetMapMode}{\void}Gets the {\it mapping mode} for the device context (see \helpref{wxSVGFileDC::SetMapMode}{wxdcsetmapmode}).\membersection{wxSVGFileDC::GetPen}\label{wxdcgetpen}\func{wxPen\&}{GetPen}{\void}\constfunc{const wxPen\&}{GetPen}{\void}Gets the current pen (see \helpref{wxSVGFileDC::SetPen}{wxdcsetpen}).\membersection{wxSVGFileDC::GetPixel}\label{wxdcgetpixel}\func{bool}{GetPixel}{\param{wxCoord}{ x}, \param{wxCoord}{ y}, \param{wxColour *}{colour}}Not implemented\membersection{wxSVGFileDC::GetSize}\label{wxdcgetsize}\func{void}{GetSize}{\param{wxCoord *}{width}, \param{wxCoord *}{height}}For a Windows printer device context, this gets the horizontal and verticalresolution. \membersection{wxSVGFileDC::GetTextBackground}\label{wxdcgettextbackground}\func{wxColour\&}{GetTextBackground}{\void}\constfunc{const wxColour\&}{GetTextBackground}{\void}Gets the current text background colour (see \helpref{wxSVGFileDC::SetTextBackground}{wxdcsettextbackground}).\membersection{wxSVGFileDC::GetTextExtent}\label{wxdcgettextextent}\func{void}{GetTextExtent}{\param{const wxString\& }{string}, \param{wxCoord *}{w}, \param{wxCoord *}{h},\\  \param{wxCoord *}{descent = NULL}, \param{wxCoord *}{externalLeading = NULL}, \param{wxFont *}{font = NULL}}Gets the dimensions of the string using the currently selected font.\rtfsp{\it string} is the text string to measure, {\it w} and {\it h} arethe total width and height respectively, {\it descent} is thedimension from the baseline of the font to the bottom of thedescender, and {\it externalLeading} is any extra vertical space addedto the font by the font designer (usually is zero).The optional parameter {\it font} specifies an alternativeto the currently selected font: but note that this does notyet work under Windows, so you need to set a font forthe device context first.See also \helpref{wxFont}{wxfont}, \helpref{wxSVGFileDC::SetFont}{wxdcsetfont}.\membersection{wxSVGFileDC::GetTextForeground}\label{wxdcgettextforeground}\func{wxColour\&}{GetTextForeground}{\void}\constfunc{const wxColour\&}{GetTextForeground}{\void}Gets the current text foreground colour (see \helpref{wxSVGFileDC::SetTextForeground}{wxdcsettextforeground}).\membersection{wxSVGFileDC::GetUserScale}\label{wxdcgetuserscale}\func{void}{GetUserScale}{\param{double}{ *x}, \param{double}{ *y}}Gets the current user scale factor (set by \helpref{SetUserScale}{wxdcsetuserscale}).\membersection{wxSVGFileDC::LogicalToDeviceX}\label{wxdclogicaltodevicex}\func{wxCoord}{LogicalToDeviceX}{\param{wxCoord}{ x}}Converts logical X coordinate to device coordinate, using the currentmapping mode.\membersection{wxSVGFileDC::LogicalToDeviceXRel}\label{wxdclogicaltodevicexrel}\func{wxCoord}{LogicalToDeviceXRel}{\param{wxCoord}{ x}}Converts logical X coordinate to relative device coordinate, using the currentmapping mode but ignoring the x axis orientation.Use this for converting a width, for example.\membersection{wxSVGFileDC::LogicalToDeviceY}\label{wxdclogicaltodevicey}\func{wxCoord}{LogicalToDeviceY}{\param{wxCoord}{ y}}Converts logical Y coordinate to device coordinate, using the currentmapping mode.\membersection{wxSVGFileDC::LogicalToDeviceYRel}\label{wxdclogicaltodeviceyrel}\func{wxCoord}{LogicalToDeviceYRel}{\param{wxCoord}{ y}}Converts logical Y coordinate to relative device coordinate, using the currentmapping mode but ignoring the y axis orientation.Use this for converting a height, for example.\membersection{wxSVGFileDC::MaxX}\label{wxdcmaxx}\func{wxCoord}{MaxX}{\void}Gets the maximum horizontal extent used in drawing commands so far.\membersection{wxSVGFileDC::MaxY}\label{wxdcmaxy}\func{wxCoord}{MaxY}{\void}Gets the maximum vertical extent used in drawing commands so far.\membersection{wxSVGFileDC::MinX}\label{wxdcminx}\func{wxCoord}{MinX}{\void}Gets the minimum horizontal extent used in drawing commands so far.\membersection{wxSVGFileDC::MinY}\label{wxdcminy}\func{wxCoord}{MinY}{\void}Gets the minimum vertical extent used in drawing commands so far.\membersection{wxSVGFileDC::Ok}\label{wxdcok}\func{bool}{Ok}{\void}Returns true if the DC is ok to use; False values arise from being unable to write the file\membersection{wxSVGFileDC::ResetBoundingBox}\label{wxdcresetboundingbox}\func{void}{ResetBoundingBox}{\void}Resets the bounding box: after a call to this function, the bounding boxdoesn't contain anything.\wxheading{See also}\helpref{CalcBoundingBox}{wxdccalcboundingbox}\membersection{wxSVGFileDC::SetAxisOrientation}\label{wxdcsetaxisorientation}\func{void}{SetAxisOrientation}{\param{bool}{ xLeftRight},                                \param{bool}{ yBottomUp}}Sets the x and y axis orientation (i.e., the direction from lowest tohighest values on the axis). The default orientation is the naturalorientation, e.g. x axis from left to right and y axis from bottom up.\wxheading{Parameters}\docparam{xLeftRight}{True to set the x axis orientation to the naturalleft to right orientation, false to invert it.}\docparam{yBottomUp}{True to set the y axis orientation to the naturalbottom up orientation, false to invert it.}\membersection{wxSVGFileDC::SetDeviceOrigin}\label{wxdcsetdeviceorigin}\func{void}{SetDeviceOrigin}{\param{wxCoord}{ x}, \param{wxCoord}{ y}}Sets the device origin (i.e., the origin in pixels after scaling has beenapplied).This function may be useful in Windows printingoperations for placing a graphic on a page.\membersection{wxSVGFileDC::SetBackground}\label{wxdcsetbackground}\func{void}{SetBackground}{\param{const wxBrush\& }{brush}}Sets the current background brush for the DC.\membersection{wxSVGFileDC::SetBackgroundMode}\label{wxdcsetbackgroundmode}\func{void}{SetBackgroundMode}{\param{int}{ mode}}{\it mode} may be one of wxSOLID and wxTRANSPARENT. This setting determineswhether text will be drawn with a background colour or not.\membersection{wxSVGFileDC::SetClippingRegion}\label{wxdcsetclippingregion}\func{void}{SetClippingRegion}{\param{wxCoord}{ x}, \param{wxCoord}{ y}, \param{wxCoord}{ width}, \param{wxCoord}{ height}}\func{void}{SetClippingRegion}{\param{const wxPoint\& }{pt}, \param{const wxSize\& }{sz}}\func{void}{SetClippingRegion}{\param{const wxRect\&}{ rect}}\func{void}{SetClippingRegion}{\param{const wxRegion\&}{ region}}Not implemented \membersection{wxSVGFileDC::SetPalette}\label{wxdcsetpalette}\func{void}{SetPalette}{\param{const wxPalette\& }{palette}}Not implemented \membersection{wxSVGFileDC::SetBrush}\label{wxdcsetbrush}\func{void}{SetBrush}{\param{const wxBrush\& }{brush}}Sets the current brush for the DC.If the argument is wxNullBrush, the current brush is selected out of the devicecontext, and the original brush restored, allowing the current brush tobe destroyed safely.See also \helpref{wxBrush}{wxbrush}.See also \helpref{wxMemoryDC}{wxmemorydc} for the interpretation of colourswhen drawing into a monochrome bitmap.\membersection{wxSVGFileDC::SetFont}\label{wxdcsetfont}\func{void}{SetFont}{\param{const wxFont\& }{font}}Sets the current font for the DC. It must be a valid font, in particular youshould not pass {\tt wxNullFont} to this method.See also \helpref{wxFont}{wxfont}.\membersection{wxSVGFileDC::SetLogicalFunction}\label{wxdcsetlogicalfunction}\func{void}{SetLogicalFunction}{\param{int}{ function}}Only wxCOPY is avalaible; trying to set one of the othe values will fail\membersection{wxSVGFileDC::SetMapMode}\label{wxdcsetmapmode}\func{void}{SetMapMode}{\param{int}{ int}}The {\it mapping mode} of the device context defines the unit ofmeasurement used to convert logical units to device units. Note thatin X, text drawing isn't handled consistently with the mapping mode; afont is always specified in point size. However, setting the {\ituser scale} (see \helpref{wxSVGFileDC::SetUserScale}{wxdcsetuserscale}) scales the text appropriately. InWindows, scaleable TrueType fonts are always used; in X, results dependon availability of fonts, but usually a reasonable match is found.Note that the coordinate origin should ideally be selectable, but fornow is always at the top left of the screen/printer.Drawing to a Windows printer device context under UNIXuses the current mapping mode, but mapping mode is currently ignored forPostScript output.The mapping mode can be one of the following:\begin{twocollist}\itemsep=0pt\twocolitem{wxMM\_TWIPS}{Each logical unit is 1/20 of a point, or 1/1440 of  an inch.}\twocolitem{wxMM\_POINTS}{Each logical unit is a point, or 1/72 of an inch.}\twocolitem{wxMM\_METRIC}{Each logical unit is 1 mm.}\twocolitem{wxMM\_LOMETRIC}{Each logical unit is 1/10 of a mm.}\twocolitem{wxMM\_TEXT}{Each logical unit is 1 pixel.}\end{twocollist}\membersection{wxSVGFileDC::SetPen}\label{wxdcsetpen}\func{void}{SetPen}{\param{const wxPen\& }{pen}}Sets the current pen for the DC.If the argument is wxNullPen, the current pen is selected out of the devicecontext, and the original pen restored.See also \helpref{wxMemoryDC}{wxmemorydc} for the interpretation of colourswhen drawing into a monochrome bitmap.\membersection{wxSVGFileDC::SetTextBackground}\label{wxdcsettextbackground}\func{void}{SetTextBackground}{\param{const wxColour\& }{colour}}Sets the current text background colour for the DC.\membersection{wxSVGFileDC::SetTextForeground}\label{wxdcsettextforeground}\func{void}{SetTextForeground}{\param{const wxColour\& }{colour}}Sets the current text foreground colour for the DC.See also \helpref{wxMemoryDC}{wxmemorydc} for the interpretation of colourswhen drawing into a monochrome bitmap.\membersection{wxSVGFileDC::SetUserScale}\label{wxdcsetuserscale}\func{void}{SetUserScale}{\param{double}{ xScale}, \param{double}{ yScale}}Sets the user scaling factor, useful for applications which require`zooming'.\membersection{wxSVGFileDC::StartDoc}\label{wxdcstartdoc}\func{bool}{StartDoc}{\param{const wxString\& }{message}}Does nothing\membersection{wxSVGFileDC::StartPage}\label{wxdcstartpage}\func{bool}{StartPage}{\void}Does nothing

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -