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

Method draw_char

pager/pagerctl.py:393–395  ·  view source on GitHub ↗

Draw a single character. Returns width.

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

Source from the content-addressed store, hash-verified

391
392 # Text (built-in bitmap font)
393 def draw_char(self, x, y, char, color, size=1):
394 """Draw a single character. Returns width."""
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."""

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected