SourceForge.net wxPrintout

wxPrintout

wxPrintout

Creation Parameters
Functions/Procedures
Supertopics

wxPrintout

[func]
get_page_mm
( atom printout )

Category: wxPrintout

Returns the size of the printer page in millimeters.


wxPrintout

[func]
get_page_pixels
( atom printout )

Category: wxPrintout

Returns the size of the printer page in pixels. These may not be the same as the values returned from wxDC::GetSize if the printout is being used for previewing, since in this case, a memory device context is used, using a bitmap size reflecting the current preview zoom. The application must take this discrepancy into account if previewing is to be supported.


wxPrintout

[func]
get_ppi_printer
( atom printout )

Category: wxPrintout

Returns the number of pixels per logical inch of the printer device context. Dividing the printer PPI by the screen PPI can give a suitable scaling factor for drawing text onto the printer. Remember to multiply this by a scaling factor to take the preview DC size into account.


wxPrintout

[func]
get_ppi_screen
( atom printout )

Category: wxPrintout

Returns the number of pixels per logical inch of the screen device context. Dividing the printer PPI by the screen PPI can give a suitable scaling factor for drawing text onto the printer. Remember to multiply this by a scaling factor to take the preview DC size into account.


wxPrintout

[func]
get_printout_dc
( atom printout )

Category: wxPrintout


wxPrintout

[func]
get_scaling_factor
( atom printout )

Category: wxPrintout


wxPrintout

[func]
is_preview
( atom printout )

Category: wxPrintout

Returns 1 if the printout is currently being used for previewing.


wxPrintout

[proc]
set_page_info
( atom printout, atom min, atom max )

Category: wxPrintout

This routine sets the max and min pages for a printout object. If you need to have the DC of the printer in order to determine the number of pages,