Function: posn-object-x-y

posn-object-x-y is a byte-compiled function defined in subr.el.gz.

Signature

(posn-object-x-y POSITION)

Documentation

Return the x and y coordinates relative to the glyph of object of POSITION.

The return value has the form (DX . DY), where DX and DY are given in pixels, and they are relative to the top-left corner of the clicked glyph of object at POSITION. POSITION should be a list of the form returned by event-start and event-end.

View in manual

Probably introduced at or before Emacs version 22.1.

Source Code

;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defsubst posn-object-x-y (position)
  "Return the x and y coordinates relative to the glyph of object of POSITION.
The return value has the form (DX . DY), where DX and DY are
given in pixels, and they are relative to the top-left corner of
the clicked glyph of object at POSITION.  POSITION should be a
list of the form returned by `event-start' and `event-end'."
  (declare (side-effect-free t))
  (nth 8 position))