Important: The information in this document is obsolete and should not be used for new development.
GetGWorldDevice
Use theGetGWorldDevicefunction to obtain a handle to theGDevicerecord associated with an offscreen graphics world.
FUNCTION GetGWorldDevice (offscreenGWorld: GWorldPtr): GDHandle;
offscreenGWorld- A pointer to an offscreen graphics world. The pointer returned to your application by the
NewGWorldfunction.DESCRIPTION
TheGetGWorldDevicefunction returns a handle to theGDevicerecord associated with the offscreen graphics world specified by theoffscreenGWorldparameter. In this parameter, supply the pointer returned to your application by theNewGWorldfunction when you created the offscreen graphics world. If you created the offscreen world by specifying thenoNewDeviceflag, theGDevicerecord is for one of the screen devices or is theGDevicerecord that you specified toNewGWorldorUpdateGWorld.If you point to a
GrafPortorCGrafPortrecord in theoffscreenGWorldparameter,GetGWorldDevicereturns the current device.SPECIAL CONSIDERATIONS
TheGetGWorldDevicefunction may move or purge memory blocks in the application heap. Your application should not call this function at interrupt time.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theGetGWorldDevicefunction are
Trap macro Selector _QDExtensions $00040012