12.2 Definitions

  • Drawing plane.
  • Coordinates.
  • Sheets and Mediums.
  • Drawing plane.

    A drawing plane is an infinite two-dimensional plane on which graphical output occurs. The drawing plane contains an arrangement of colors and opacities that is modified by each graphical output operation. It is not possible to read back the contents of a drawing plane, except by examining the output-history. Normally each window has its own drawing plane.

    Coordinates.

    Coordinates are a pair of real numbers in implementation-defined units that identify a point in the drawing plane.

    Sheets and Mediums.

    In this chapter, we use a medium as a destination for output. The medium has a drawing plane, two designs called the medium's foreground and background, a transformation, a clipping region, a line style, and a text style. There are per-medium, dynamically scoped, default drawing options. Different medium classes are provided to allow programmers to draw on different sorts of devices, such as displays, printers, and virtual devices such as bitmaps. [annotate]

    Many sheets can be used for doing output, so the drawing functions can also take a sheet as the output argument. In this case, drawing function "trampolines" to the sheet's medium. So, while the functions defined here are specified to be called on sheets, they can also be called on sheets. [annotate]

    Note: I think that should read "So, while the functions defined here are specified to be called on mediums, they can also be called on sheets." [edit]-- Lyn Headley 2003-07-18 19:43Z
     

    A stream is a special kind of sheet that implements the stream protocol; streams include additional state such as the current text cursor (which is some point in the drawing plane). [annotate]

    By default, the "fundamental" coordinate system of a CLIM stream (not a general sheet or medium, whose fundamental coordinate system is not defined) is a left handed system with x increasing to the right, and y increasing downward. (0,0) is at the upper left corner. [annotate]