This class represents the Windows or PostScript printer, and is the vehicle through which printing may be launched by an application.
Printing can also be achieved through using of lower functions and classes, but this and associated classes provide a more convenient and general method of printing.
wxWidgets docs: wxPrinter
new() -> wxPrinter()
new(Options :: [Option]) -> wxPrinter()
createAbortWindow(This, Parent, Printout) -> wxDialog:wxDialog()
Creates the default printing abort window, with a cancel button.
getAbort(This) -> boolean()
Returns true if the user has aborted the print job.
getLastError() -> wx:wx_enum()
getPrintDialogData(This) -> wxPrintDialogData:wxPrintDialogData()
Returns the print data associated with the printer object.
print(This, Parent, Printout) -> boolean()
print(This, Parent, Printout, Options :: [Option]) -> boolean()
Starts the printing process.
Provide a parent window, a user-defined wxPrintout object which controls the printing of a document, and whether the print dialog should be invoked first.
print/4 could return false if there was a problem initializing the printer device context (current printer not set, for example) or the user cancelled printing. Call getLastError/0 to get detailed information about the kind of the error.
printDialog(This, Parent) -> wxDC:wxDC()
Invokes the print dialog.
If successful (the user did not press Cancel and no error occurred), a suitable device context will be returned; otherwise NULL is returned; call getLastError/0 to get detailed information about the kind of the error.
Remark: The application must delete this device context to avoid a memory leak.
reportError(This, Parent, Printout, Message) -> ok
Default error-reporting function.
setup(This, Parent) -> boolean()
Invokes the print setup dialog.
Deprecated: The setup dialog is obsolete, though retained for backward compatibility.
destroy(This :: wxPrinter()) -> ok
Destroys the object.