Important: The information in this document is obsolete and should not be used for new development.
QDProcs
You need to use theQDProcsrecord, which is a data structure of typeQDProcs, 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.The
QDProcsrecord contains pointers to low-level drawing routines. QuickDraw's standard low-level drawing routines are described in "Customizing QuickDraw Operations" beginning on page 3-124. You can change the fields of this record to point to routines of your own devising.
TYPE QDProcsPtr = ^QDProcs; QDProcs = RECORD textProc: Ptr; {text drawing} lineProc: Ptr; {line drawing} rectProc: Ptr; {rectangle drawing} rRectProc: Ptr; {roundRect drawing} ovalProc: Ptr; {oval drawing} arcProc: Ptr; {arc/wedge drawing} polyProc: Ptr; {polygon drawing} rgnProc: Ptr; {region drawing} bitsProc: Ptr; {bit transfer} commentProc:Ptr; {picture comment processing} txMeasProc: Ptr; {text width measurement} getPicProc: Ptr; {picture retrieval} putPicProc: Ptr; {picture saving} END;You can use the
Field Description
textProc- A pointer to the low-level routine that draws text. The standard QuickDraw routine is the
StdTextprocedure.lineProc- A pointer to the low-level routine that draws lines. The standard QuickDraw routine is the
StdLineprocedure.rectProc- A pointer to the low-level routine that draws rectangles. The standard QuickDraw routine is the
StdRectprocedure.rRectProc- A pointer to the low-level routine that draws rounded rectangles. The standard QuickDraw routine is the
StdRRectprocedure.ovalProc- A pointer to the low-level routine that draws ovals. The standard QuickDraw routine is the
StdOvalprocedure.arcProc- A pointer to the low-level routine that draws arcs. The standard QuickDraw routine is the
StdArcprocedure.polyProc- A pointer to the low-level routine that draws polygons. The standard QuickDraw routine is the
StdPolyprocedure.rgnProc- A pointer to the low-level routine that draws regions. The standard QuickDraw routine is the
StdRgnprocedure.bitsProc- A pointer to the low-level routine that copies bitmaps. The standard QuickDraw routine is the
StdBitsprocedure.commentProc- A pointer to the low-level routine for processing a picture comment. The standard QuickDraw routine is the
StdCommentprocedure.txMeasProc- A pointer to the low-level routine for measuring text width. The standard QuickDraw routine is the
StdTxtMeasfunction.getPicProc- A pointer to the low-level routine for retrieving information from the definition of a picture. The standard QuickDraw routine is the
StdGetPicprocedure.putPicProc- A pointer to the low-level routine for saving information as the definition of a picture. The standard QuickDraw routine is the
StdPutPicprocedure.SetStdProcsprocedure to set all the fields of theQDProcsrecord to point to QuickDraw's standard routines, and then reset the ones for which you have your own routines.