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


25.5.4.4 Event Glyph Position Info

The following functions return information about the glyph (if any) that a mouse event occurred over.

Function: event-over-glyph-p event

Given a mouse-motion, button-press, button-release, or misc-user event, this function returns t if the event is over a glyph. Otherwise, nil is returned.

Function: event-glyph-extent event

If the given mouse-motion, button-press, button-release, or misc-user event happened on top of a glyph, this returns its extent; else nil is returned.

Function: event-glyph-x-pixel event

Given a mouse-motion, button-press, button-release, or misc-user event over a glyph, this function returns the X position of the pointer relative to the upper left of the glyph. If the event is not over a glyph, it returns nil.

Function: event-glyph-y-pixel event

Given a mouse-motion, button-press, button-release, or misc-user event over a glyph, this function returns the Y position of the pointer relative to the upper left of the glyph. If the event is not over a glyph, it returns nil.