Carbon


QDProcs

Header: Quickdraw.h

struct QDProcs {
    QDTextUPP textProc; 
    QDLineUPP lineProc; 
    QDRectUPP rectProc; 
    QDRRectUPP rRectProc; 
    QDOvalUPP ovalProc; 
    QDArcUPP arcProc; 
    QDPolyUPP polyProc; 
    QDRgnUPP rgnProc; 
    QDBitsUPP bitsProc; 
    QDCommentUPP commentProc; 
    QDTxMeasUPP txMeasProc; 
    QDGetPicUPP getPicProc; 
    QDPutPicUPP putPicProc;
};
typedef QDProcs QDProcsPtr;

Field descriptions

textProc

A pointer to the low-level function that draws text. The standard QuickDraw function is the StdText function.

lineProc

A pointer to the low-level function that draws lines. The standard QuickDraw function is the StdLine function.

rectProc

A pointer to the low-level function that draws rectangles. The standard QuickDraw function is the StdRect function.

rRectProc

A pointer to the low-level function that draws rounded rectangles. The standard QuickDraw function is the StdRRect function.

ovalProc

A pointer to the low-level function that draws ovals. The standard QuickDraw function is the StdOval function.

arcProc

A pointer to the low-level function that draws arcs. The standard QuickDraw function is the StdArc function.

polyProc

A pointer to the low-level function that draws polygons. The standard QuickDraw function is the StdPoly function.

rgnProc

A pointer to the low-level function that draws regions. The standard QuickDraw function is the StdRgn function.

bitsProc

A pointer to the low-level function that copies bitmaps. The standard QuickDraw function is the StdBits function.

commentProc

A pointer to the low-level function for processing a picture comment. The standard QuickDraw function is the StdComment function.

txMeasProc

A pointer to the low-level function for measuring text width. The standard QuickDraw function is the StdTxMeas function.

getPicProc

A pointer to the low-level function for retrieving information from the definition of a picture. The standard QuickDraw function is the StdGetPic function.

putPicProc

A pointer to the low-level function for saving information as the definition of a picture. The standard QuickDraw function is the StdPutPic function.

You need to use the QDProcs structure only if you customize one or more of QuickDraw’s low-level drawing functions. Use SetStdProcs to create a QDProcs structure.

The QDProcs structure contains pointers to low-level drawing functions. You can change the fields of this structure to point to functions of your own devising.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)