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

Method draw_text

tests/test_pager_code.py:233–238  ·  view source on GitHub ↗

Draw text at position. Returns width.

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

Source from the content-addressed store, hash-verified

231 return 5 * size
232
233 def draw_text(self, x, y, text, color, size=1):
234 """Draw text at position. Returns width."""
235 if VERBOSE:
236 text_preview = text[:30] + ('...' if len(text) > 30 else '')
237 print(f"[MockPager] draw_text({x}, {y}, '{text_preview}', size={size})")
238 return len(text) * 6 * size
239
240 def draw_text_centered(self, y, text, color, size=1):
241 """Draw horizontally centered text."""

Callers 1

run_testsFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected