Next: Window-Level Event Position Info, Previous: Accessing Mouse Event Positions, Up: Accessing Mouse Event Positions [Contents][Index]
The following functions return frame-level information about where a mouse event occurred.
This function returns the “channel” or frame that the given mouse
motion, button press, button release, or misc-user event occurred in.
This will be nil
for non-mouse events.
This function returns the X position in pixels of the given mouse event. The value returned is relative to the frame the event occurred in. This will signal an error if the event is not a mouse event.
This function returns the Y position in pixels of the given mouse event. The value returned is relative to the frame the event occurred in. This will signal an error if the event is not a mouse event.