Important: The information in this document is obsolete and should not be used for new development.
Data Structures
This section describes thePolygonrecord, thePenStaterecord, theQDProcsrecord, and thePatternrecord. 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
PolygonorPatternrecords. Instead, you use theOpenPolyfunction (described on page 3-74) to create a polygon, and QuickDraw creates the necessary record. Although you can create aPatternrecord 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
QDProcsrecord only if you customize one or more of QuickDraw's low-level drawing routines. You can use theSetStdProcsprocedure, described on page 3-125, to create aQDProcsrecord.You can use a
PenStaterecord to save the location, size, pattern, and pattern mode of a graphics pen. TheGetPenStateprocedure, described on page 3-39, automatically creates a pen state record. You can use theSetPenStateprocedure, described on page 3-39, to restore the values stored in aPenStaterecord to the current graphics pen.