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 9 - Printing Manager / Printing Manager Reference
Data Structures /


TPrPort

The record of the data type TPrPort contains a graphics port and a pointer to a QDProcs record.

TYPE TPrPort =                {printing graphics port}
   RECORD
      gPort:      GrafPort;   {graphics port for printing}
      gProcs:     QDProcs;    {procedures for printing }
                              { in the graphics port}
      lGParam1:   LongInt;    {reserved}
      lGParam2:   LongInt;    {reserved}
      lGParam3:   LongInt;    {reserved}
      lGParam4:   LongInt;    {reserved}
      fOurPtr:    Boolean;    {reserved}
      fOurBits:   Boolean;    {reserved}
END;
Field Description
gPort
Either a CGrafPort or GrafPort record, depending on whether the current printer supports color or grayscale and depending on whether Color QuickDraw is available. If you need to determine the type of graphics port, you can check the high bit in the rowBytes field of the record contained in the gPort field; if this bit is set, the printing graphics port is based on a CGrafPort record.
gProcs
A QDProcs record that contains pointers to routines that the printer driver may have designated to take the place of QuickDraw routines. See the chapter "Basic QuickDraw" in this book for more information about the QDProcs record.
lGParam1
Reserved.
lGParam2
Reserved.
lGParam3
Reserved.
lGParam4
Reserved.
fOurPtr
Reserved.
fOurBits
Reserved.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996