6.9 dc-path%
A path is a set of figures defined by curves. A path can be used with the
draw-path method of a dc<%> object to draw the path's curves as
lines, fill the region bounded by the path's curves, or both. A path
can also be used with the
set-path method of a region% object to generate a region bounded by
the path's curves.
A path consists of zero or more closed sub-paths, and
possibly one open sub-path. Some dc-path% methods
extend the open sub-path, some dc-path% methods close the
open sub-path, and some dc-path% methods add closed
sub-paths.
When a path is drawn as a line, a closed sub-path is drawn as a closed
figure, analogous to a polygon. An open sub-path is drawn with
disjoint start and end points, analogous lines drawn with
draw-lines in dc<%>.
When a path is filled or used as a region, the open sub-path (if any)
is treated as if it were closed. The content of a path is determined
either through the 'even-odd rule or the 'winding
rule, as selected at the time when the path is filled or used to
generate a region.
(make-object dc-path%)->dc-path%objectCreates a new path that contains no sub-paths (and no open sub-path).
Methods
append
arc
close
curve-to
ellipse
get-bounding-box
line-to
lines
move-to
open?
rectangle
reset
reverse
rotate
rounded-rectangle
scale
translate