Next: Event Toolbar Position Info, Previous: Event Text Position Info, Up: Accessing Mouse Event Positions [Contents][Index]
The following functions return information about the glyph (if any) that a mouse event occurred over.
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.
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.
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
.
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
.