Expand description
Pango-bordered tooltip primitives shared by every vendor renderer.
Extracted from the per-vendor implementations because every tooltip (Anthropic, OpenAI, Z.AI, OpenRouter) draws the same kind of box: blue corners + horizontals, dim separators, centered title, left-padded body lines. The only thing that varies is the line content.
Mirrors the visual style of claudebar’s ${B}╭${border_h}╮${E} block
(claudebar:843-859).
Enums§
- Line
- One row of the bordered tooltip box.
Functions§
- pad_
center - Pad
ssymmetrically; when the difference is odd, the extra space goes on the right (claudebarcenter_padprecedent). - pad_
right - Pad
son the right with spaces so its visible width reachesinner_w. - render_
bordered - Render the bordered tooltip. Width is computed from the widest body/center line so different vendors auto-size correctly.