Function: hycontrol-frame-resize-percentage
hycontrol-frame-resize-percentage is a byte-compiled function defined
in hycontrol.el.
Signature
(hycontrol-frame-resize-percentage ARG)
Documentation
ARG should be between 0 and 100. 0 means don't resize (return 1).
1 is the default value which means cut the frame along the given dimension
in half (return 0.5). 2-100 is converted to a percentage to multiply by.
Over 100 is set to 100. Under 0 is set to 0. Floats between 0 and 1
are taken as percentages and used. Other floats are rounded.
non-integer arguments are ignored and the default value is used.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hycontrol.el
;;; Frame Resizing Commands
(defun hycontrol-frame-resize-percentage (arg)
"ARG should be between 0 and 100. 0 means don't resize (return 1).
1 is the default value which means cut the frame along the given dimension
in half (return 0.5). 2-100 is converted to a percentage to multiply by.
Over 100 is set to 100. Under 0 is set to 0. Floats between 0 and 1
are taken as percentages and used. Other floats are rounded.
non-integer arguments are ignored and the default value is used."
(cond ((numberp arg)
(cond
((= arg 0) 1)
((= arg 1) 0.5)
((and (> arg 1) (<= arg 100)) (/ arg 100.0))
((< arg 0) 0)
((> arg 100) 1)))
(t (hycontrol-frame-resize-percentage 1))))