mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-14 11:35:48 +00:00
Add ghostty_kitty_graphics_placement_viewport_pos which converts a placement's internal pin to viewport-relative grid coordinates. The returned row can be negative when the placement's origin has scrolled above the viewport, allowing embedders to compute the correct destination rectangle for partially visible images. Returns GHOSTTY_NO_VALUE only when the placement is completely outside the viewport (bottom edge above the viewport or top edge at or below the last row), so embedders do not need to perform their own visibility checks. Partially visible placements always return GHOSTTY_SUCCESS with their true signed coordinates.