Table of Contents

wxPrintout

include file: wxPrint.e


Creation parameters:

  • func get_page_mm( atom printout )   
  • func get_page_pixels( atom printout )   
  • func get_ppi_printer( atom printout )   
  • func get_ppi_screen( atom printout )   
  • func get_printout_dc( atom printout )   
  • func is_preview( atom printout )   
  • proc set_page_info( atom printout, atom min, atom max )     
     
    Parent Topics:
  • Printing


    Table of Contents

    [func]
    get_page_mm
    ( atom printout )

    Category: wxPrintout

    Returns the size of the printer page in millimeters.

    See Also: get_page_pixels, get_ppi_printer, get_ppi_screen, get_printout_dc, is_preview, set_page_info



    Table of Contents

    [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.

    See Also: get_page_mm, get_ppi_printer, get_ppi_screen, get_printout_dc, is_preview, set_page_info



    Table of Contents

    [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.

    See Also: get_page_mm, get_page_pixels, get_ppi_screen, get_printout_dc, is_preview, set_page_info



    Table of Contents

    [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.

    See Also: get_page_mm, get_page_pixels, get_ppi_printer, get_printout_dc, is_preview, set_page_info



    Table of Contents

    [func]
    get_printout_dc
    ( atom printout )

    Category: wxPrintout

    See Also: get_page_mm, get_page_pixels, get_ppi_printer, get_ppi_screen, is_preview, set_page_info



    Table of Contents

    [func]
    is_preview
    ( atom printout )

    Category: wxPrintout

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

    See Also: get_page_mm, get_page_pixels, get_ppi_printer, get_ppi_screen, get_printout_dc, set_page_info



    Table of Contents

    [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,

    See Also: get_page_mm, get_page_pixels, get_ppi_printer, get_ppi_screen, get_printout_dc, is_preview