Carbon


PMGetGrafPtr

Header: PMCore.h Carbon status: Supported

Obtains the printing port from an opaque printing context.

OSStatus PMGetGrafPtr (
    PMPrintContext printContext, 
    GrafPtr *grafPort
);
Parameter descriptions
printContext

A PMPrintContext object.

grafPort

On return, a pointer to a grafPort defining the current printing port.

function result

A result code. A result code. See “Result Codes”.

DISCUSSION

PMSessionGetGraphicsContext is recommended instead of PMGetGrafPtr.

SPECIAL CONSIDERATIONS

Valid after calling PMBegin and creating a printing context.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later.

CARBON NOTES

The PMGetGrafPtr function allows access to the pointer formerly stored in the gPort field of the Printing Manager structure TPrPort.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)