diff options
Diffstat (limited to 'src/macos/pardes.h')
| -rw-r--r-- | src/macos/pardes.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/macos/pardes.h b/src/macos/pardes.h index e9d7bb41..8b798df6 100644 --- a/src/macos/pardes.h +++ b/src/macos/pardes.h @@ -257,6 +257,27 @@ uint32_t pardes_theme_bg(void); // polls it and rebuilds only tagline glyph/metric state. uint8_t pardes_gui_tagline_font_percent(void); +// Where a reduced-height tagline band sits inside its body-sized grid row, in +// PHYSICAL PIXELS down from the row's top, and the rule joining the topbar band +// to the first pane-tag band. The core owns this geometry so that this shell and +// the SDL one cannot disagree about it; centring every band is what this shell +// used to do, and it left a strip of window background between the two. +// +// Points in, pixels out: multiply by the backing scale before calling and divide +// the answer back, the same snapping the cell metrics already use. +uint32_t pardes_tagline_band_offset(uint16_t row, float canvas_h, uint32_t cell_h, + uint32_t tagline_h); +uint32_t pardes_topbar_pane_border_px(uint32_t cell_h, uint32_t tagline_h); + +// Colour of that rule: a compiled override, else the theme's scrollbar track. +// PARDES_COLOR_DEFAULT before there is a session to ask — do not draw it then. +uint32_t pardes_topbar_pane_border_rgb(void); + +// Rows the global topbar occupies, and therefore the row index of the FIRST +// pane tagline — the one the rule above joins the topbar band to. Mirrors +// pardes.TOPBAR_H, and src/macos.zig asserts the two agree. +#define PARDES_TOPBAR_H 1u + // Persistent full-window effect switches and their display-clock time. A zero // flags word means draw the CoreText frame directly; any nonzero combination // is one postprocess pass. Snapshot by value, with no borrowed storage. |
