Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Imaging With QuickDraw /
Chapter 3 - QuickDraw Drawing / QuickDraw Drawing Reference
Routines / Customizing QuickDraw Operations


SetStdProcs

You can use the SetStdProcs procedure to get a QDProcs record with fields that point to basic QuickDraw's standard low-level routines. You can replace these low-level routines with your own, and then point to your modified QDProcs record in the grafProcs field of a GrafPort record to change basic QuickDraw's standard low-level behavior.

PROCEDURE SetStdProcs (VAR procs:\xDDQDProcs);
procs
Upon completion, a QDProcs record with fields that point to basic QuickDraw's standard low-level routines.
DESCRIPTION
In the procs parameter, the SetStdProcs procedure returns a QDProcs record with fields that point to the standard low-level routines. You can change one or more fields of this record to point to your own routines and then set the basic graphics port to use this modified QDProcs record.

The routines you install in this QDProcs record must have the same calling sequences as the standard routines, which are described in the rest of this section.

SPECIAL CONSIDERATIONS
The Color QuickDraw procedure SetStdCProcs is analogous to the SetStdProcs procedure, which you should use with computers that support only basic QuickDraw. When drawing in a color graphics port, your application must always use SetStdCProcs instead of SetStdProcs.

SEE ALSO
The data structure of type QDProcs is described on page 3-35. The SetStdCProcs procedure is described in the chapter "Color QuickDraw."

The chapter "Pictures" in this book describes how to replace the low-level routines that read and write pictures.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996