For a frame on a graphical terminal the following function returns the
sizes of the areas described above:
-@defun x-frame-geometry &optional frame
+@defun frame-geometry &optional frame
This function returns geometric attributes of @var{frame}. The return
value is an association list of the attributes listed below. All
coordinate, height and width values are integers counting pixels.
On a graphical terminal the following two functions allow to retrieve
and set the absolute position of the mouse cursor.
-@defun x-mouse-absolute-pixel-position
+@defun mouse-absolute-pixel-position
This function returns a cons cell (@var{x} . @var{y}) of the coordinates
of the mouse cursor position in pixels, relative to a position (0, 0) of
the selected frame's display.
@end defun
-@defun x-set-mouse-absolute-pixel-position x y
+@defun set-mouse-absolute-pixel-position x y
This function moves the mouse cursor to the position (@var{x}, @var{y}).
The coordinates @var{x} and @var{y} are interpreted in pixels relative
to a position (0, 0) of the selected frame's display.
Calling @code{(window-absolute-body-pixel-edges window)} is equivalent
to calling @code{(window-edges window t t t)}, see above.
-Combined with @code{x-set-mouse-absolute-pixel-position}, this function
+Combined with @code{set-mouse-absolute-pixel-position}, this function
can be used to move the mouse pointer to an arbitrary buffer position
visible in some window:
@example
@group
(let ((position (window-absolute-pixel-position)))
- (x-set-mouse-absolute-pixel-position
+ (set-mouse-absolute-pixel-position
(car position) (cdr position)))
@end group
@end example
`scroll-bar-height'.
+++
-** New functions `x-frame-geometry' and `frame-edges' give access to a
+** New functions `frame-geometry' and `frame-edges' give access to a
frame's geometry.
+++
-** New functions `x-mouse-absolute-pixel-position' and
-`x-set-mouse-absolute-pixel-position' get/set screen coordinates of the
+** New functions `mouse-absolute-pixel-position' and
+`set-mouse-absolute-pixel-position' get/set screen coordinates of the
mouse cursor.
+++