Important: The information in this document is obsolete and should not be used for new development.
GXGetViewPortMouse
You can use theGXGetViewPortMouse
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 theportOrder
parameter isnil
, 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