Important: The information in this document is obsolete and should not be used for new development.
PortChanged
If you modify the content of aGrafPortrecord (described in the chapter "Basic QuickDraw" in this book) orCGrafPortrecord (described on page 4-39), including any of the data structures specified by handles within the record, use thePortChangedprocedure.
PROCEDURE PortChanged (port: GrafPtr);
port- A pointer to the
GrafPortrecord that you have changed.DESCRIPTION
ThePortChangedprocedure notifies QuickDraw that your application has changed the graphics port specified in theportparameter. If your application has changed aCGrafPortrecord, it must coerce its pointer (that is, itsCGrafPtr) to a pointer to aGrafPortrecord (that is, to aGrafPtr) before passing the pointer in theportparameter.You generally should not directly change any of the
PixPatrecords specified in aCGrafPortrecord, but instead use thePenPixPatandBackPixPatprocedures. However, if your application does change the content of aPixPatrecord, it should call thePixPatChangedprocedure (described in the preceding section) as well as thePortChangedprocedure.If your application changes the
pmTablefield of thePixMaprecord specified in the graphics port, your application should callPortChanged. If your application changes the content of theColorTablerecord referenced by thepmTablefield, it should callCTabChangedas well.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for thePortChangedprocedure are
Trap macro Selector _QDExtensions $00040009