Important: The information in this document is obsolete and should not be used for new development.
GXGetGDeviceViewDevice
You can use theGXGetGDeviceViewDevicefunction to return the view device object associated with a specified Macintosh graphics device.
gxViewDevice GXGetGDeviceViewDevice(GDHandle qdGDevice);
- qdGDevice
- A handle to the
GDevicerecord of the graphics device whose view device is requested.- function result
- A reference to the view device object associated with the specified graphics device.
DESCRIPTION
TheGXGetGDeviceViewDevicefunction returns a reference to the view device object associated with a specified graphics device. The function returnsnilif the graphics device has no view device.ERRORS, WARNINGS, AND NOTICES
Errors out_of_memory SEE ALSO
Macintosh graphics devices and theGDevicerecord are described in Inside Macintosh: Imaging With QuickDraw.View devices are described in the chapter "View-Related Objects" in Inside Macintosh: QuickDraw GX Objects.
To obtain the graphics device associated with a view device, use the GXGetViewDeviceGDevice function, described in the previous section.