Important: The information in this document is obsolete and should not be used for new development.
GXGetViewDeviceGDeviceYou can use the
GXGetViewDeviceGDevicefunction to return the Macintosh graphics device associated with a specified view device object.
GDHandle GXGetViewDeviceGDevice(gxViewDevice theDevice);
- A reference to the view device whose graphics device is requested.
- function result
- A handle to the
GDevicerecord of the specified view device.
GXGetViewDeviceGDevicefunction returns a handle to the
GDevicerecord associated with a specified view device. The function returns
nilif the view device has no
ERRORS, WARNINGS, AND NOTICES
Errors out_of_memory invalid_viewdevice_reference
SEE ALSOMacintosh graphics devices and the
GDevicerecord 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 view device associated with a graphics device, use the GXGetGDeviceViewDevice function, described next.