Darryl,
Given a (visible) point (i.e., "(point)") in a
particular window,
how does one get the corresponding pixel co-ordinates? Co-ordinates
relative to either the window or the frame are welcome. Getting
co-ordinates from a mouse event is trivial, but I want to get the
co-ordinates of the cursor as I type.
Oddly enough I'm looking for exactly the same thing and I don't think
that it exists in lisp. glyph_to_pixel_translation() gives what you want
in C and this is used by 'set-mouse-position. You could trivially add a
new function to frame.c that calls glyph_to_pixel_translation() - maybe
call it 'pixel-position ?.
Jonathan.
--
Jonathan Harris | jhar(a)tardis.ed.ac.uk
London, England | Jonathan.Harris(a)symbian.com