Function: posframe-poshandler-frame-center

posframe-poshandler-frame-center is a byte-compiled function defined in posframe.el.

Signature

(posframe-poshandler-frame-center INFO)

Documentation

Posframe's position handler.

This poshandler function let center of posframe align to center of frame.

The structure of INFO can be found in docstring of posframe-show.

Source Code

;; Defined in ~/.emacs.d/elpa/posframe-20260415.14/posframe.el
(defun posframe-poshandler-frame-center (info)
  "Posframe's position handler.

This poshandler function let center of posframe align to center
of frame.

The structure of INFO can be found in docstring of
`posframe-show'."
  (cons (/ (- (plist-get info :parent-frame-width)
              (plist-get info :posframe-width))
           2)
        (/ (- (plist-get info :parent-frame-height)
              (plist-get info :posframe-height))
           2)))