Draw text at position. Returns width.
(self, x, y, text, color, size=1)
| 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.""" |