Page 126 Table of Contents Index Page 128
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 14. GENERAL DESIGNS

Since bounded designs obey the region protocol, the functions transform-region and untransform-
region
accept any design as their second argument and apply a coordinate transformation to
the design. The result is a design that might be freshly constructed or might be an existing
object.

Transforming a uniform design simply returns the argument. Transforming a composite, flip-
ping, or indirect design applies the transformation to the component design(s). Transforming a
pattern, tile, or output record design is described in the sections on those designs.

14.5 Arbitrary Designs

=> draw-design sheet design &key ink clipping-region transformation line-style line-thickness line-
unit line-dashes line-joint-shape line-cap-shape text-style text-family text-face text-size
[Generic Function]
Draws the design design onto the sheet sheet. This is defined to work for all types of regions and
designs, although in practice some implementations may be more restrictive. ink, transformation,
and clipping-region are used to modify the medium. The other drawing arguments control the
drawing of the design, depending on what sort of design is being drawn. For instance, if design
is a path, then line style options may be supplied.

If design is an area, draw-design paints the specified region of the drawing plane with current
ink of the sheet's medium. If design is a path, draw-design strokes the path with medium's
current ink under control of the line-style. If design is a point, draw-design is the same as
draw-point.

If design is a color or an opacity, draw-design paints the entire drawing plane (subject to the
clipping region of the sheet's medium).

If design is +nowhere+, draw-design has no effect.

If design is a non-uniform design (see Chapter 14), draw-design paints the design, positioned
at coordinates (0;0).

CLIM implementations are required to support draw-design for the following cases:
=> draw-pattern* sheet pattern x y &key clipping-region transformation [Function]


Page 126 Table of Contents Index Page 128
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