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 theQDDone
function.
FUNCTION QDDone (port: GrafPtr): Boolean;
port
- The
GrafPort
record for a graphics port in which your application has begun drawing; if you passNIL
,QDDone
tests all open graphics ports.DESCRIPTION
TheQDDone
function returnsTRUE
if all drawing operations have finished in the graphics port specified in theport
parameter,FALSE
if any remain to be executed. If you passNIL
in theport
parameter, thenQDDone
returnsTRUE
only if drawing operations have completed in all ports.The
QDDone
function 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
TheQDDone
function has little or no usefulness.If a graphics port draws a clock or some other continuously operating drawing process,
QDDone
may never returnTRUE
.To determine whether all drawing in a color graphics port has completed, you must coerce its
CGrafPort
record to aGrafPort
record, which you pass in theport
parameter.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theQDDone
function are
Trap macro Selector _QDExtensions $00040013