#include <Quickdraw.h>
typedef struct GrafPort { Size Offset Description short device; 2 0 Device-specific info; 0=screen
RgnHandle visRgn; 4 24 Portion not covered by other windows
RgnHandle clipRgn; 4 28 User-definable clipping region Point pnLoc; 4 48 Pen location in local coords short pnMode; 2 56 Transfer Mode; patCopy, PenMode short pnVis; 2 66 If <0, pen is invisible HidePen, short txFont; 2 68 Font; 0= system, 1= application
char filler;
short txMode; 2 72 Transfer Mode; srcOr, srcXor,
short txSize; 2 74 Text size in points TextSize Fixed spExtra; 4 76 Spacing for full justification long fgColor; 4 80 Old-model color for foreground
long bkColor; 4 84 Old-model color for background
short colrBit; 2 88 Old-model color plane ColorBit short patStretch; 2 90 Used internally; printer aspect ratio
adjustment
Handle polySave; 4 100 PolyHandle if polygon being saved QDProcsPtr grafProcs; 4 104 Addr of struct with addresses of
custom routines
typedef GrafPort *GrafPtr;