Function: frameset-compute-pos

frameset-compute-pos is a byte-compiled function defined in frameset.el.gz.

Signature

(frameset-compute-pos VALUE LEFT/TOP RIGHT/BOTTOM)

Documentation

Return an absolute positioning value for a frame.

VALUE is the value of a positional frame parameter (left or top). If VALUE is relative to the screen edges (like (+ -35) or (-200), it is converted to absolute by adding it to the corresponding edge; if it is an absolute position, it is returned unmodified. LEFT/TOP and RIGHT/BOTTOM indicate the dimensions of the screen in pixels along the relevant direction: either the position of the left and right edges for a left positional parameter, or the position of the top and bottom edges for a top parameter.

Source Code

;; Defined in /usr/src/emacs/lisp/frameset.el.gz
(defun frameset-compute-pos (value left/top right/bottom)
  "Return an absolute positioning value for a frame.
VALUE is the value of a positional frame parameter (`left' or `top').
If VALUE is relative to the screen edges (like (+ -35) or (-200), it is
converted to absolute by adding it to the corresponding edge; if it is
an absolute position, it is returned unmodified.
LEFT/TOP and RIGHT/BOTTOM indicate the dimensions of the screen in
pixels along the relevant direction: either the position of the left
and right edges for a `left' positional parameter, or the position of
the top and bottom edges for a `top' parameter."
  (pcase value
    (`(+ ,val) (+ left/top val))
    (`(- ,val) (+ right/bottom val))
    (val val)))