Returns the location of a Quartz mouse event.
- macOS 10.5+
- Mac Catalyst 13.0+
- Core Graphics
The mouse event whose location you wish to obtain.
The current location of the specified mouse event relative to the lower-left corner of the main display.
This function returns the location of the mouse cursor associated with the event. The coordinate system used is relative to the lower-left corner of the main display, and is compatible with the global coordinate system used by the Application Kit.
Note that the y-coordinate of the returned location is off by one from an idealized coordinate system originating at the lower-left corner of the main display. Effectively, the function is defined as follows: