Function: window--combination-resizable

window--combination-resizable is a byte-compiled function defined in window.el.gz.

Signature

(window--combination-resizable PARENT &optional HORIZONTAL)

Documentation

Return number of pixels recoverable from height of window PARENT.

PARENT must be a vertical (horizontal if HORIZONTAL is non-nil) window combination. The return value is the sum of the pixel heights of all non-fixed height child windows of PARENT divided by their number plus 1. If HORIZONTAL is non-nil, return the sum of the pixel widths of all non-fixed width child windows of PARENT divided by their number plus 1.

Source Code

;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun window--combination-resizable (parent &optional horizontal)
  "Return number of pixels recoverable from height of window PARENT.
PARENT must be a vertical (horizontal if HORIZONTAL is non-nil)
window combination.  The return value is the sum of the pixel
heights of all non-fixed height child windows of PARENT divided
by their number plus 1.  If HORIZONTAL is non-nil, return the sum
of the pixel widths of all non-fixed width child windows of
PARENT divided by their number plus 1."
  (let ((sibling (window-child parent))
	(number 0)
	(size 0))
    (while sibling
      (unless (window-size-fixed-p sibling horizontal)
	(setq number (1+ number))
	(setq size (+ (window-size sibling horizontal t) size)))
      (setq sibling (window-next-sibling sibling)))
    (/ size (1+ number))))