27 Drawing Contracts
This page documents the contracts that are used to describe the specification of racket/draw objects and functions.
value
Recognizes font designations. Corresponds to the family
initialization argument of the font% class.
Equivalent to the following definition:
(or/c 'default 'decorative 'roman 'script 'swiss 'modern 'symbol 'system)
value
Recognizes font styles. Corresponds to the style
initialization argument of the font% class.
Equivalent to the following definition:
(or/c 'normal 'italic 'slant)
value
value
Recognizes a font smoothing amount.
Corresponds to the smoothing
initialization argument of the font% class.
Equivalent to the following definition:
(or/c 'default 'partly-smoothed 'smoothed 'unsmoothed)
value
Recognizes font hinting modes. Corresponds to the hinting
initialization argument of the font% class.
Equivalent to the following definition:
(or/c 'aligned 'unaligned)
value
Recognizes pen styles. Corresponds
to the style initialization argument of the
pen% class.
Equivalent to the following definition:
(or/c 'transparent 'solid 'xor 'hilite 'dot 'long-dash 'short-dash 'dot-dash 'xor-dot 'xor-long-dash 'xor-short-dash 'xor-dot-dash)
value
Recognizes pen cap styles. Corresponds
to the cap initialization argument of the
pen% class.
Equivalent to the following definition:
(or/c 'round 'projecting 'butt)
value
Recognizes pen join styles. Corresponds
to the join initialization argument of the
pen% class.
Equivalent to the following definition:
(or/c 'round 'bevel 'miter)
value
Recognizes brush styles. Corresponds
to the style initialization argument of the
brush% class.
Equivalent to the following definition:
(or/c 'transparent 'solid 'opaque 'xor 'hilite 'panel 'bdiagonal-hatch 'crossdiag-hatch 'fdiagonal-hatch 'cross-hatch 'horizontal-hatch 'vertical-hatch)