X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/edbd0635f283adfe7aeb5c551e199493d05b6cf5..56601ff2db94ccc874107eb60c4564ceb47f6d02:/docs/latex/wx/htdcrend.tex diff --git a/docs/latex/wx/htdcrend.tex b/docs/latex/wx/htdcrend.tex index 58ae47a2f9..631b4c22e5 100644 --- a/docs/latex/wx/htdcrend.tex +++ b/docs/latex/wx/htdcrend.tex @@ -13,6 +13,14 @@ or \helpref{wxHtmlPrintout}{wxhtmlprintout} is strongly recommended. \helpref{wxObject}{wxobject} +\wxheading{Include files} + + + +\wxheading{Library} + +\helpref{wxHtml}{librarieslist} + \latexignore{\rtfignore{\wxheading{Members}}} \membersection{wxHtmlDCRenderer::wxHtmlDCRenderer}\label{wxhtmldcrendererwxhtmldcrenderer} @@ -23,22 +31,20 @@ Constructor. \membersection{wxHtmlDCRenderer::SetDC}\label{wxhtmldcrenderersetdc} -\func{void}{SetDC}{\param{wxDC* }{dc}, \param{double }{pixel_scale = 1.0}} +\func{void}{SetDC}{\param{wxDC* }{dc}, \param{double }{pixel\_scale = 1.0}} Assign DC instance to the renderer. -{\it pixel_scale} can be used when rendering to high-resolution DCs (e.g. printer) to adjust size of pixel metrics. -(Many dimensions in HTML are given in pixels - e.g. image sizes. 300x300 image would be only one -inch wide on typical printer. With pixel_scale = 3.0 it would be 3 inches.) +{\it pixel\_scale} can be used when rendering to high-resolution DCs (e.g. printer) to adjust size of pixel metrics. +(Many dimensions in HTML are given in pixels -- e.g. image sizes. 300x300 image would be only one +inch wide on typical printer. With pixel\_scale = 3.0 it would be 3 inches.) -\wxheading{Parameters} +\membersection{wxHtmlDCRenderer::SetFonts}\label{wxhtmldcrenderersetfonts} -\docparam{maxwidth}{width of the area (on this DC) that is equivalent to screen's width, -in pixels (you should set it to page width minus margins). +\func{void}{SetFonts}{\param{const wxString\& }{normal\_face}, \param{const wxString\& }{fixed\_face}, \param{const int }{*sizes = NULL}} -{\bf Note:} In the current implementation -the screen width is always 800 pixels: it gives best results and ensures (almost) same printed outputs -across platforms and differently configured desktops.} +Sets fonts. See \helpref{wxHtmlWindow::SetFonts}{wxhtmlwindowsetfonts} for +detailed description. See also \helpref{SetSize}{wxhtmldcrenderersetsize}. @@ -52,7 +58,7 @@ width of the rectangle between calls to \helpref{Render}{wxhtmldcrendererrender} \membersection{wxHtmlDCRenderer::SetHtmlText}\label{wxhtmldcrenderersethtmltext} -\func{void}{SetHtmlText}{\param{const wxString\& }{html}, \param{const wxString\& }{basepath = wxEmptyString}, \param{bool }{isdir = TRUE}} +\func{void}{SetHtmlText}{\param{const wxString\& }{html}, \param{const wxString\& }{basepath = wxEmptyString}, \param{bool }{isdir = true}} Assign text to the renderer. \helpref{Render}{wxhtmldcrendererrender} then draws the text onto DC. @@ -64,12 +70,12 @@ the text onto DC. \docparam{basepath}{base directory (html string would be stored there if it was in file). It is used to determine path for loading images, for example.} -\docparam{isdir}{FALSE if basepath is filename, TRUE if it is directory name +\docparam{isdir}{false if basepath is filename, true if it is directory name (see \helpref{wxFileSystem}{wxfilesystem} for detailed explanation)} \membersection{wxHtmlDCRenderer::Render}\label{wxhtmldcrendererrender} -\func{int}{Render}{\param{int }{x}, \param{int }{y}, \param{int }{from = 0}, \param{int }{dont\_render = FALSE}} +\func{int}{Render}{\param{int }{x}, \param{int }{y}, \param{int }{from = 0}, \param{int }{dont\_render = false}} Renders HTML text to the DC. @@ -79,7 +85,7 @@ Renders HTML text to the DC. \docparam{from}{y-coordinate of the very first visible cell} -\docparam{dont\_render}{if TRUE then this method only returns y coordinate of the next page +\docparam{dont\_render}{if true then this method only returns y coordinate of the next page and does not output anything} Returned value is y coordinate of first cell than didn't fit onto page.