Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Environment and Utilities /
Chapter 1 - QuickDraw GX and the Macintosh Environment / QuickDraw GX and the Macintosh Environment Reference
Macintosh Interface Functions / Converting From QuickDraw to QuickDraw GX Coordinates


GXGetViewPortMouse

You can use the GXGetViewPortMouse function to obtain the cursor position expressed in the QuickDraw GX local coordinates of the specified view port.

void GXGetViewPortMouse(gxViewPort portOrder, gxPoint *localPt);
portOrder
A reference to the view port for which the cursor position is requested.
localPt
A pointer to a gxPoint structure. On return, the structure contains the fixed-point local coordinates of the current cursor position.
SPECIAL CONSIDERATIONS
If the portOrder parameter is nil, this function posts an invalid_viewPort_reference error.

ERRORS, WARNINGS, AND NOTICES
Errors
out_of_memory
invalid_viewPort_reference
Warnings
point_does_not_intersect_port

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996