MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / draw_text_centered

Method draw_text_centered

tests/test_pager_code.py:240–243  ·  view source on GitHub ↗

Draw horizontally centered text.

(self, y, text, color, size=1)

Source from the content-addressed store, hash-verified

238 return len(text) * 6 * size
239
240 def draw_text_centered(self, y, text, color, size=1):
241 """Draw horizontally centered text."""
242 if VERBOSE:
243 print(f"[MockPager] draw_text_centered(y={y}, '{text[:30]}')")
244
245 def text_width(self, text, size=1):
246 """Get width of text in pixels."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected