Function: scroll-bar-lines
scroll-bar-lines is a byte-compiled function defined in
scroll-bar.el.gz.
Signature
(scroll-bar-lines)
Documentation
Return the height, measured in lines, of the horizontal scrollbar.
Source Code
;; Defined in /usr/src/emacs/lisp/scroll-bar.el.gz
(defun scroll-bar-lines ()
"Return the height, measured in lines, of the horizontal scrollbar."
(let* ((wsb (window-scroll-bars))
(htype (nth 5 wsb))
(lines (nth 4 wsb)))
(cond
(htype lines)
((frame-parameter nil 'horizontal-scroll-bars)
;; nil means it's a non-toolkit scroll bar (which is currently
;; impossible), and its height in lines is 14 pixels rounded up.
(ceiling (or (frame-parameter nil 'scroll-bar-height) 14)
(frame-char-width)))
(0))))