Function: which-key--height-or-percentage-to-height

which-key--height-or-percentage-to-height is a byte-compiled function defined in which-key.el.gz.

Signature

(which-key--height-or-percentage-to-height HEIGHT-OR-PERCENTAGE)

Documentation

Return window total height.

If HEIGHT-OR-PERCENTAGE is a whole number, return it unchanged. Otherwise, it should be a percentage (a number between 0 and 1) out of the frame's height. More precisely, it should be a percentage out of the frame's root window's total height.

Source Code

;; Defined in /usr/src/emacs/lisp/which-key.el.gz
(defun which-key--height-or-percentage-to-height (height-or-percentage)
  "Return window total height.
If HEIGHT-OR-PERCENTAGE is a whole number, return it unchanged.  Otherwise, it
should be a percentage (a number between 0 and 1) out of the frame's height.
More precisely, it should be a percentage out of the frame's root window's
total height."
  (if (natnump height-or-percentage)
      height-or-percentage
    (round (* height-or-percentage (window-total-height (frame-root-window))))))