superclass: object% | ||
|
A printer-dc% object is a Windows or Mac OS X printer device context. The class cannot be instantiated under X (an exn:misc:unsupported exception is raised).
Under Mac OS X, a newly created printer-dc% object obtains orientation (portrait versus landscape) and scaling information from the current ps-setup% object, as determined by the current-ps-setup parameter. This information can be configured by the user through a dialog shown by get-page-setup-from-user.
Be sure to use the following methods to start/end drawing:
Attempts to use a drawing method outside of an active page raises an exception.
See also post-script-dc%.
When a printer-dc% object is created, the user gets platform-specific modal dialogs for configuring the output. If the user cancels the dialog, the ok? method of the object returns #f.
(new printer-dc% [[parent parent]]) → (is-a?/c printer-dc%) | ||||||||||||
|
If parent is not #f, it is used as the parent window of the configuration dialog.