.\" This is a wxWidgets manpage page generated from the XML docs .TH wxHtmlDCRenderer 3wx 2005-02-15 "wxWidgets" "wxWidgets class documentation" .SH NAME wxHtmlDCRenderer \- .SH DESCRIPTION This class can render HTML document into a specified area of a DC. You can use it in your own printing code, although use of wxHtmlEasyPrinting or wxHtmlPrintout is strongly recommended. .SH "PARENTS" wxObject .SH "INCLUDE FILES" wx/html/htmprint.h .SH MEMBERS .SS wxHtmlDCRenderer () Constructor. .SS void SetDC (wxDC* dcdouble pixel_scale = 1.0) Assign DC instance to the renderer. 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.) .SS void SetFonts (const wxString& normal_faceconst wxString& fixed_faceconst int *sizes = NULL) Sets fonts. See wxHtmlWindow::SetFonts for detailed description. See also SetSize . .SS void SetSize (int widthint height) Set size of output rectangle, in pixels. Note that you can't change width of the rectangle between calls to Render ! (You can freely change height.) .SS void SetHtmlText (const wxString& htmlconst wxString& basepath = wxEmptyStringbool isdir = true) Assign text to the renderer. Render then draws the text onto DC. .SS int Render (int xint yint from = 0int dont_render = false) Renders HTML text to the DC. Returned value is y coordinate of first cell than didn't fit onto page. Use this value as from in next call to Render in order to print multipages document. .SS int GetTotalHeight () Returns the height of the HTML text. This is important if area height (see SetSize ) is smaller that total height and thus the page cannot fit into it. In that case you're supposed to call Render as long as its return value is smaller than GetTotalHeight's. .SH "SEE ALSO" wxObject .SH "AUTHORS" Documentation content by Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn, et al Conversion to manpage format by Arnout Engelen (http://bzzt.net), bugreports welcome.