A printer device context allows access to any printer.
Like other DC object, wPrinterDC need nim's destructors to release the resource.
Superclass: | wDC |
---|
Seealso: | wPrintData |
---|
Procs
proc getPaperRect(self: wPrinterDC): wRect {...}{.raises: [], tags: [].}
- Return the rectangle in device coordinates that corresponds to the full paper area, including the nonprinting regions of the paper. The point (0,0) in device coordinates is the top left corner of the page rectangle, which is the printable area. The coordinates of the top left corner of the paper rectangle will therefore have small negative values, while the bottom right coordinates will be somewhat larger than the values returned by wDC.GetSize().
proc startDoc(self: wPrinterDC; message: string): bool {...}{.discardable, raises: [], tags: [].}
- Starts a document. Returns false if failed.
proc endDoc(self: wPrinterDC) {...}{.raises: [], tags: [].}
- Ends a document.
proc abortDoc(self: wPrinterDC) {...}{.raises: [], tags: [].}
- Stops the current print job.
proc startPage(self: wPrinterDC) {...}{.raises: [], tags: [].}
- Starts a document page.
proc endPage(self: wPrinterDC) {...}{.raises: [], tags: [].}
- Ends a document page.
proc PrinterDC(printData: wPrintData): wPrinterDC {...}{.raises: [wNilAccess, wError, IndexDefect, wFontError, wPenError, wBrushError], tags: [RootEffect].}
- Create a wPrinterDC from given wPrintData object.
proc delete(self: var wPrinterDC) {...}{.raises: [], tags: [].}
- Nim's destructors will delete this object by default. However, sometimes you maybe want to do that by yourself. (Nim's destructors don't work in some version?)