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 |