2.3 Drawing Classes
2.3.1 bitmap%
2.3.2 bitmap-dc%
2.3.3 brush%
2.3.4 brush-list%
2.3.5 color%
2.3.6 color-database<%>
2.3.7 dc<%>
2.3.8 dc-path%
2.3.9 font%
2.3.10 font-list%
2.3.11 font-name-directory<%>
2.3.12 gl-config%
2.3.13 gl-context<%>
2.3.14 pen%
2.3.15 pen-list%
2.3.16 point%
2.3.17 post-script-dc%
2.3.18 printer-dc%
2.3.19 ps-setup%
2.3.20 region%

Inherited methods:

from dc<%>

clear

draw-arc

draw-bitmap

draw-bitmap-section

draw-ellipse

draw-line

draw-lines

draw-path

draw-point

draw-polygon

draw-rectangle

draw-rounded-rectangle

draw-spline

draw-text

end-doc

end-page

get-alpha

get-background

get-brush

get-char-height

get-char-width

get-clipping-region

get-font

get-gl-context

get-origin

get-pen

get-scale

get-size

get-smoothing

get-text-background

get-text-extent

get-text-foreground

get-text-mode

glyph-exists?

ok?

set-alpha

set-background

set-brush

set-clipping-rect

set-clipping-region

set-font

set-origin

set-pen

set-scale

set-smoothing

set-text-background

set-text-foreground

set-text-mode

start-doc

start-page

try-color

Version: 4.1

printer-dc% : class?

  superclass: object%

  extends: 

dc<%>

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%)

  

parent

 

:

 

(or/c (is-a?/c frame%) (is-a?/c dialog%) false/c)

 

 

 

=

 

#f

If parent is not #f, it is used as the parent window of the configuration dialog.