Important: The information in this document is obsolete and should not be used for new development.
Customizing Color QuickDraw Operations
For each shape that QuickDraw can draw, there are procedures that perform these basic graphics operations on the shape: framing, painting, erasing, inverting, and filling. As described in the chapter "QuickDraw Drawing" in this book, those procedures in turn call a low-level drawing routine for the shape. For example, theFrameOval
,PaintOval
,EraseOval
,InvertOval
, andFillOval
procedures all call the low-level procedureStdOval
, which draws the oval.The
grafProcs
field of aCGrafPort
record determines which low-level routines are called. If that field contains the value ofNIL
, the standard routines are called. You can set thegrafProcs
field to point to a record of pointers to your own routines. This record of pointers is defined by a data structure of typeCQDProcs
. By changing these pointers, you can install your own routines, and either completely override the standard ones or call them after your routines have modified their parameters as necessary.To assist you in setting up a record, QuickDraw provides the
SetStdCProcs
procedure. You can use theSetStdCProcs
procedure to set all the fields of theCQDProcs
record to point to the standard routines. You can then reset the ones with which you are concerned.
Subtopics
- SetStdCProcs