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

Method draw_text

pager/pagerctl.py:397–399  ·  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

395 return _lib.pager_draw_char(x, y, char.encode(), color, size)
396
397 def draw_text(self, x, y, text, color, size=1):
398 """Draw text at position. Returns width."""
399 return _lib.pager_draw_text(x, y, text.encode(), color, size)
400
401 def draw_text_centered(self, y, text, color, size=1):
402 """Draw horizontally centered text."""

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected