Important: The information in this document is obsolete and should not be used for new development.
GXGetViewDeviceGDevice
You can use theGXGetViewDeviceGDevice
function to return the Macintosh graphics device associated with a specified view device object.
GDHandle GXGetViewDeviceGDevice(gxViewDevice theDevice);
- theDevice
- A reference to the view device whose graphics device is requested.
- function result
- A handle to the
GDevice
record of the specified view device.DESCRIPTION
TheGXGetViewDeviceGDevice
function returns a handle to theGDevice
record associated with a specified view device. The function returnsnil
if the view device has noGDevice
record.ERRORS, WARNINGS, AND NOTICES
Errors out_of_memory invalid_viewdevice_reference SEE ALSO
Macintosh graphics devices and theGDevice
record 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.