Important: The information in this document is obsolete and should not be used for new development.
Data Structures
This section describes thePolygon
record, thePenState
record, theQDProcs
record, and thePattern
record. Although this chapter describes routines for creating and manipulating rectangles and regions, the data structures you can use to define these entities are described in the chapter "Basic QuickDraw."Your application typically does not create
Polygon
orPattern
records. Instead, you use theOpenPoly
function (described on page 3-74) to create a polygon, and QuickDraw creates the necessary record. Although you can create aPattern
record in your program code, it is usually easier to create patterns using the pattern or pattern list resources, which are described beginning on page 3-136.You need to use the
QDProcs
record only if you customize one or more of QuickDraw's low-level drawing routines. You can use theSetStdProcs
procedure, described on page 3-125, to create aQDProcs
record.You can use a
PenState
record to save the location, size, pattern, and pattern mode of a graphics pen. TheGetPenState
procedure, described on page 3-39, automatically creates a pen state record. You can use theSetPenState
procedure, described on page 3-39, to restore the values stored in aPenState
record to the current graphics pen.