comparison lispref/commands.texi @ 59545:b736797a552a

(Accessing Events): Add WHOLE arg to posn-at-x-y.
author Kim F. Storm <storm@cua.dk>
date Fri, 14 Jan 2005 12:15:33 +0000
parents 396ac6daefa7
children 4301dcdf04df cb67264d6096
comparison
equal deleted inserted replaced
59544:eeb8c7b63e5b 59545:b736797a552a
1841 1841
1842 @code{posn-at-point} returns @code{nil} if @var{pos} is not visible in 1842 @code{posn-at-point} returns @code{nil} if @var{pos} is not visible in
1843 @var{window}. 1843 @var{window}.
1844 @end defun 1844 @end defun
1845 1845
1846 @defun posn-at-x-y x y &optional frame-or-window 1846 @defun posn-at-x-y x y &optional frame-or-window whole
1847 This function returns position information corresponding to pixel 1847 This function returns position information corresponding to pixel
1848 coordinates @var{x} and @var{y} in a specified frame or window, 1848 coordinates @var{x} and @var{y} in a specified frame or window,
1849 @var{frame-or-window}, which defaults to the selected window. 1849 @var{frame-or-window}, which defaults to the selected window.
1850 The coordinates @var{x} and @var{y} are relative to the 1850 The coordinates @var{x} and @var{y} are relative to the
1851 frame or window used. 1851 frame or window used.
1852 If @var{whole} is @code{nil}, the coordinates are relative
1853 to the window text area, otherwise they are relative to
1854 the entire window area including scroll bars, margins and fringes.
1852 @end defun 1855 @end defun
1853 1856
1854 These functions are useful for decoding scroll bar events. 1857 These functions are useful for decoding scroll bar events.
1855 1858
1856 @defun scroll-bar-event-ratio event 1859 @defun scroll-bar-event-ratio event