Important: The information in this document is obsolete and should not be used for new development.
QDDone
Although you will probably never need to determine whether QuickDraw has completed drawing, you can do so by using theQDDonefunction.
FUNCTION QDDone (port: GrafPtr): Boolean;
port- The
GrafPortrecord for a graphics port in which your application has begun drawing; if you passNIL,QDDonetests all open graphics ports.DESCRIPTION
TheQDDonefunction returnsTRUEif all drawing operations have finished in the graphics port specified in theportparameter,FALSEif any remain to be executed. If you passNILin theportparameter, thenQDDonereturnsTRUEonly if drawing operations have completed in all ports.The
QDDonefunction may be useful if a graphics accelerator is present and operating asynchronously. You could use it to ensure that all drawing is done before issuing new drawing commands, and to avoid the possibility that the new drawing operations might be overlaid by previously issued but unexecuted operations.SPECIAL CONSIDERATIONS
TheQDDonefunction has little or no usefulness.If a graphics port draws a clock or some other continuously operating drawing process,
QDDonemay never returnTRUE.To determine whether all drawing in a color graphics port has completed, you must coerce its
CGrafPortrecord to aGrafPortrecord, which you pass in theportparameter.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theQDDonefunction are
Trap macro Selector _QDExtensions $00040013