MCPcopy Create free account
hub / github.com/B33pBeeps/redthread / overlayFontMenuOnString

Method overlayFontMenuOnString

internal/app/model.go:1206–1211  ·  view source on GitHub ↗
(base string)

Source from the content-addressed store, hash-verified

1204}
1205
1206func (m model) overlayFontMenuOnString(base string) string {
1207 rect := FontMenuRect(m.w, m.h-1)
1208 c := NewCanvas(rect.W, rect.H)
1209 drawFontMenuAt(c, 0, 0, m.fontMenu)
1210 return SpliceOverlay(base, c.Serialize(), rect.X, rect.Y)
1211}
1212
1213func (m model) drawBoardView(c *Canvas) {
1214 // While a board-switch crossfade is in flight: render the relevant

Callers 1

ViewMethod · 0.95

Calls 5

SerializeMethod · 0.95
FontMenuRectFunction · 0.85
NewCanvasFunction · 0.85
drawFontMenuAtFunction · 0.85
SpliceOverlayFunction · 0.85

Tested by

no test coverage detected