Page 63 Table of Contents Index Page 65
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E



CHAPTER 8. SHEET PROTOCOLS

=> medium-clipping-region medium [Generic Function]
=> (setf medium-clipping-region) region medium [Generic Function]
Returns (and, with setf, sets) the clipping region that encloses all output performed on the
medium medium. It is returned and set in user coordinates. That is, to convert the user clipping
region to medium coordinates, it must be transformed by the value of medium-transformation.
For example, the values returned by
 
 (let (cr1 cr2)
   ;; Ensure that the sheet's clipping region and transformation will be reset:
   (with-drawing-options (sheet :transformation +identity-transformation+
                                :clipping-region +everywhere+)
     (setf (medium-clipping-region sheet) (make-rectangle* 0 0 10 10))
     (setf (medium-transformation sheet) (clim:make-scaling-transformation 2 2))
     (setf cr1 (medium-clipping-region sheet))
     (setf (medium-clipping-region sheet) (make-rectangle* 0 0 10 10))
     (setf (medium-transformation sheet) +identity-transformation+)
     (setf cr2 (medium-clipping-region sheet))
     (values cr1 cr2)))
are two rectangles. The first one has edges of (0,0,5,5), while the second one has edges of
(0,0,20,20).

By default, the user clipping region is the value of +everywhere+.

Major issue: What exactly are "user coordinates"? We need to define all of the coordinate
systems in one place: device, window, stream, etc. | SWM

=> medium-line-style medium [Generic Function]
=> (setf medium-line-style) line-style medium [Generic Function]
Returns (and, with setf, sets) the current line style for the medium medium. This is described
in detail in Chapter 10 and Section 10.3.

=> medium-text-style medium [Generic Function]
=> (setf medium-text-style) text-style medium [Generic Function]
Returns (and, with setf, sets) the current text style for the medium medium of any textual
output that may be displayed on the window. This is described in detail in Chapter 10.

=> medium-default-text-style medium [Generic Function]
=> (setf medium-default-text-style) text-style medium [Generic Function]
Returns (and, with setf, sets) the default text style for output on the medium medium. This is
described in detail in Chapter 10.

=> medium-merged-text-style medium [Generic Function]
Returns the actual text style used in rendering text on the medium medium. It returns the result
of


Page 63 Table of Contents Index Page 65
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E