Skip to main content

Module popup

Module popup 

Source
Expand description

Popup overlay primitives.

Today the only popup surface is the help-buffer overlay (DESIGN.md §5.11). Even so, “where the popup sits on screen” is a renderer concern – not a help-content concern – so the placement enum lives here and is reused by any future popup kind (inline diagnostic box, completion docs, signature side- panel) without dragging in help-buffer machinery.

Enums§

PopupFocus
Whether opening a popup moves focus into it. Names the distinction the code already makes between the two overlay entry points, so any popup kind (help, ACP permission menu, LSP code-action list) picks a focus mode without dragging in help-buffer machinery.
PopupPlacement
Where the popup overlay anchors on screen.

Functions§

popup_outer_size
Outer size (border-inclusive) of a help / hover popup overlay.