Next: , Previous: , Up: Accessing Mouse Event Positions   [Contents][Index]


25.5.4.1 Frame-Level Event Position Info

The following functions return frame-level information about where a mouse event occurred.

Function: event-frame event

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.

Function: event-x-pixel event

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.

Function: event-y-pixel 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.