Important: The information in this document is obsolete and should not be used for new development.
GXGetViewPortWindow
You can use theGXGetViewPortWindowfunction to return the Macintosh window of a specified view port.
gxWindowPtr GXGetViewPortWindow(gxViewPort portOrder);
- portOrder
- A reference to the specified view port.
- function result
- A pointer to the window associated with the specified view port.
DESCRIPTION
The function returnsnilif the view port is not associated with a window.This function returns
nilif you pass it a reference to a child view port of a window view port. To determine the window ultimately associated with a child view port, use theGXGetViewPortParentfunction to find the parent view port at the top of the view port hierarchy, and pass that view port reference to the GXGetViewPortWindow function.ERRORS, WARNINGS, AND NOTICES
Errors out_of_memory invalid_viewport_reference SEE ALSO
To create a view port associated with a window, use the GXNewWindowViewPort function, described in the previous section. To obtain the view port associated with a window, use the GXGetWindowViewPort function, described next.