Function: window-body-size

window-body-size is a byte-compiled function defined in window.el.gz.

Signature

(window-body-size &optional WINDOW HORIZONTAL PIXELWISE)

Documentation

Return the height or width of WINDOW's text area.

WINDOW must be a live window and defaults to the selected one.

If HORIZONTAL is omitted or nil, return the height of the text area, like window-body-height. Otherwise, return the width of the text area, like window-body-width. In either case, the optional argument PIXELWISE is passed to the functions.

Source Code

;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun window-body-size (&optional window horizontal pixelwise)
  "Return the height or width of WINDOW's text area.
WINDOW must be a live window and defaults to the selected one.

If HORIZONTAL is omitted or nil, return the height of the text
area, like `window-body-height'.  Otherwise, return the width of
the text area, like `window-body-width'.  In either case, the
optional argument PIXELWISE is passed to the functions."
  (if horizontal
      (window-body-width window pixelwise)
    (window-body-height window pixelwise)))